elasticsearch-api 6.2.0 → 6.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (184) hide show
  1. checksums.yaml +4 -4
  2. data/lib/elasticsearch/api/actions/abort_benchmark.rb +1 -1
  3. data/lib/elasticsearch/api/actions/benchmark.rb +1 -1
  4. data/lib/elasticsearch/api/actions/bulk.rb +4 -6
  5. data/lib/elasticsearch/api/actions/cat/aliases.rb +10 -10
  6. data/lib/elasticsearch/api/actions/cat/allocation.rb +11 -11
  7. data/lib/elasticsearch/api/actions/cat/count.rb +10 -10
  8. data/lib/elasticsearch/api/actions/cat/fielddata.rb +9 -7
  9. data/lib/elasticsearch/api/actions/cat/health.rb +11 -11
  10. data/lib/elasticsearch/api/actions/cat/help.rb +4 -2
  11. data/lib/elasticsearch/api/actions/cat/indices.rb +14 -15
  12. data/lib/elasticsearch/api/actions/cat/master.rb +10 -10
  13. data/lib/elasticsearch/api/actions/cat/nodeattrs.rb +6 -4
  14. data/lib/elasticsearch/api/actions/cat/nodes.rb +10 -10
  15. data/lib/elasticsearch/api/actions/cat/pending_tasks.rb +10 -10
  16. data/lib/elasticsearch/api/actions/cat/plugins.rb +7 -6
  17. data/lib/elasticsearch/api/actions/cat/recovery.rb +10 -12
  18. data/lib/elasticsearch/api/actions/cat/repositories.rb +7 -3
  19. data/lib/elasticsearch/api/actions/cat/segments.rb +9 -7
  20. data/lib/elasticsearch/api/actions/cat/shards.rb +12 -12
  21. data/lib/elasticsearch/api/actions/cat/snapshots.rb +8 -4
  22. data/lib/elasticsearch/api/actions/cat/tasks.rb +4 -6
  23. data/lib/elasticsearch/api/actions/cat/templates.rb +6 -6
  24. data/lib/elasticsearch/api/actions/cat/thread_pool.rb +13 -17
  25. data/lib/elasticsearch/api/actions/clear_scroll.rb +7 -0
  26. data/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +2 -3
  27. data/lib/elasticsearch/api/actions/cluster/get_settings.rb +5 -2
  28. data/lib/elasticsearch/api/actions/cluster/health.rb +11 -20
  29. data/lib/elasticsearch/api/actions/cluster/pending_tasks.rb +2 -3
  30. data/lib/elasticsearch/api/actions/cluster/put_settings.rb +8 -3
  31. data/lib/elasticsearch/api/actions/cluster/remote_info.rb +7 -1
  32. data/lib/elasticsearch/api/actions/cluster/reroute.rb +7 -7
  33. data/lib/elasticsearch/api/actions/cluster/state.rb +18 -15
  34. data/lib/elasticsearch/api/actions/cluster/stats.rb +12 -5
  35. data/lib/elasticsearch/api/actions/count.rb +12 -23
  36. data/lib/elasticsearch/api/actions/count_percolate.rb +1 -1
  37. data/lib/elasticsearch/api/actions/delete.rb +16 -8
  38. data/lib/elasticsearch/api/actions/delete_by_query.rb +7 -9
  39. data/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb +29 -0
  40. data/lib/elasticsearch/api/actions/delete_script.rb +5 -6
  41. data/lib/elasticsearch/api/actions/exists.rb +3 -4
  42. data/lib/elasticsearch/api/actions/exists_source.rb +51 -0
  43. data/lib/elasticsearch/api/actions/explain.rb +11 -25
  44. data/lib/elasticsearch/api/actions/field_caps.rb +2 -2
  45. data/lib/elasticsearch/api/actions/get.rb +13 -19
  46. data/lib/elasticsearch/api/actions/get_script.rb +9 -2
  47. data/lib/elasticsearch/api/actions/get_source.rb +10 -14
  48. data/lib/elasticsearch/api/actions/index.rb +10 -16
  49. data/lib/elasticsearch/api/actions/indices/analyze.rb +3 -27
  50. data/lib/elasticsearch/api/actions/indices/clear_cache.rb +2 -4
  51. data/lib/elasticsearch/api/actions/indices/close.rb +9 -15
  52. data/lib/elasticsearch/api/actions/indices/create.rb +7 -7
  53. data/lib/elasticsearch/api/actions/indices/delete.rb +3 -4
  54. data/lib/elasticsearch/api/actions/indices/delete_alias.rb +7 -4
  55. data/lib/elasticsearch/api/actions/indices/delete_template.rb +5 -2
  56. data/lib/elasticsearch/api/actions/indices/exists.rb +11 -17
  57. data/lib/elasticsearch/api/actions/indices/exists_alias.rb +6 -14
  58. data/lib/elasticsearch/api/actions/indices/exists_template.rb +8 -4
  59. data/lib/elasticsearch/api/actions/indices/exists_type.rb +6 -15
  60. data/lib/elasticsearch/api/actions/indices/flush.rb +5 -9
  61. data/lib/elasticsearch/api/actions/indices/flush_synced.rb +1 -1
  62. data/lib/elasticsearch/api/actions/indices/forcemerge.rb +13 -11
  63. data/lib/elasticsearch/api/actions/indices/freeze.rb +0 -1
  64. data/lib/elasticsearch/api/actions/indices/get.rb +9 -15
  65. data/lib/elasticsearch/api/actions/indices/get_alias.rb +6 -14
  66. data/lib/elasticsearch/api/actions/indices/get_field_mapping.rb +11 -15
  67. data/lib/elasticsearch/api/actions/indices/get_mapping.rb +12 -16
  68. data/lib/elasticsearch/api/actions/indices/get_settings.rb +12 -21
  69. data/lib/elasticsearch/api/actions/indices/get_template.rb +8 -5
  70. data/lib/elasticsearch/api/actions/indices/open.rb +9 -15
  71. data/lib/elasticsearch/api/actions/indices/put_alias.rb +6 -3
  72. data/lib/elasticsearch/api/actions/indices/put_mapping.rb +11 -23
  73. data/lib/elasticsearch/api/actions/indices/put_settings.rb +10 -20
  74. data/lib/elasticsearch/api/actions/indices/put_template.rb +10 -5
  75. data/lib/elasticsearch/api/actions/indices/recovery.rb +2 -4
  76. data/lib/elasticsearch/api/actions/indices/refresh.rb +6 -14
  77. data/lib/elasticsearch/api/actions/indices/rollover.rb +6 -5
  78. data/lib/elasticsearch/api/actions/indices/segments.rb +6 -14
  79. data/lib/elasticsearch/api/actions/indices/shard_stores.rb +2 -4
  80. data/lib/elasticsearch/api/actions/indices/shrink.rb +6 -7
  81. data/lib/elasticsearch/api/actions/indices/split.rb +2 -1
  82. data/lib/elasticsearch/api/actions/indices/update_aliases.rb +7 -4
  83. data/lib/elasticsearch/api/actions/indices/upgrade.rb +10 -13
  84. data/lib/elasticsearch/api/actions/indices/validate_query.rb +14 -25
  85. data/lib/elasticsearch/api/actions/info.rb +6 -0
  86. data/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +1 -1
  87. data/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +4 -3
  88. data/lib/elasticsearch/api/actions/ingest/processor_grok.rb +29 -0
  89. data/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +1 -1
  90. data/lib/elasticsearch/api/actions/ingest/simulate.rb +5 -5
  91. data/lib/elasticsearch/api/actions/mget.rb +8 -17
  92. data/lib/elasticsearch/api/actions/msearch.rb +7 -2
  93. data/lib/elasticsearch/api/actions/msearch_template.rb +8 -1
  94. data/lib/elasticsearch/api/actions/mtermvectors.rb +21 -22
  95. data/lib/elasticsearch/api/actions/nodes/hot_threads.rb +4 -6
  96. data/lib/elasticsearch/api/actions/nodes/info.rb +6 -26
  97. data/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb +10 -4
  98. data/lib/elasticsearch/api/actions/nodes/stats.rb +11 -30
  99. data/lib/elasticsearch/api/actions/nodes/usage.rb +31 -0
  100. data/lib/elasticsearch/api/actions/ping.rb +6 -0
  101. data/lib/elasticsearch/api/actions/put_script.rb +10 -9
  102. data/lib/elasticsearch/api/actions/rank_eval.rb +36 -0
  103. data/lib/elasticsearch/api/actions/reindex.rb +9 -14
  104. data/lib/elasticsearch/api/actions/reindex_rethrottle.rb +29 -0
  105. data/lib/elasticsearch/api/actions/render_search_template.rb +1 -1
  106. data/lib/elasticsearch/api/actions/scripts_painless_execute.rb +27 -0
  107. data/lib/elasticsearch/api/actions/scroll.rb +3 -2
  108. data/lib/elasticsearch/api/actions/search.rb +36 -53
  109. data/lib/elasticsearch/api/actions/search_shards.rb +7 -14
  110. data/lib/elasticsearch/api/actions/search_template.rb +20 -19
  111. data/lib/elasticsearch/api/actions/snapshot/create.rb +2 -3
  112. data/lib/elasticsearch/api/actions/snapshot/create_repository.rb +4 -3
  113. data/lib/elasticsearch/api/actions/snapshot/delete.rb +3 -3
  114. data/lib/elasticsearch/api/actions/snapshot/delete_repository.rb +1 -2
  115. data/lib/elasticsearch/api/actions/snapshot/get.rb +3 -3
  116. data/lib/elasticsearch/api/actions/snapshot/get_repository.rb +3 -6
  117. data/lib/elasticsearch/api/actions/snapshot/restore.rb +1 -1
  118. data/lib/elasticsearch/api/actions/snapshot/status.rb +4 -5
  119. data/lib/elasticsearch/api/actions/snapshot/verify_repository.rb +1 -2
  120. data/lib/elasticsearch/api/actions/tasks/cancel.rb +7 -13
  121. data/lib/elasticsearch/api/actions/tasks/get.rb +6 -3
  122. data/lib/elasticsearch/api/actions/tasks/list.rb +10 -16
  123. data/lib/elasticsearch/api/actions/termvectors.rb +22 -21
  124. data/lib/elasticsearch/api/actions/update.rb +19 -33
  125. data/lib/elasticsearch/api/actions/update_by_query.rb +13 -33
  126. data/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb +29 -0
  127. data/lib/elasticsearch/api/version.rb +1 -1
  128. data/spec/elasticsearch/api/actions/cluster/state_spec.rb +0 -17
  129. data/spec/elasticsearch/api/actions/cluster/stats_spec.rb +17 -0
  130. data/spec/elasticsearch/api/actions/indices/analyze_spec.rb +0 -37
  131. data/spec/elasticsearch/api/actions/indices/put_settings_spec.rb +0 -15
  132. data/spec/elasticsearch/api/actions/indices/refresh_spec.rb +0 -15
  133. data/spec/elasticsearch/api/actions/indices/segments_spec.rb +0 -15
  134. data/spec/elasticsearch/api/actions/mget_spec.rb +0 -15
  135. data/spec/elasticsearch/api/actions/search_spec.rb +0 -15
  136. data/test/integration/yaml_test_runner.rb +2 -4
  137. data/utils/thor/generate_source.rb +1 -0
  138. data/utils/thor/templates/ruby/method.erb +7 -5
  139. metadata +12 -73
  140. data/lib/elasticsearch/api/actions/delete_template.rb +0 -21
  141. data/lib/elasticsearch/api/actions/field_stats.rb +0 -36
  142. data/lib/elasticsearch/api/actions/get_template.rb +0 -27
  143. data/lib/elasticsearch/api/actions/indices/delete_mapping.rb +0 -26
  144. data/lib/elasticsearch/api/actions/indices/delete_warmer.rb +0 -32
  145. data/lib/elasticsearch/api/actions/indices/get_aliases.rb +0 -37
  146. data/lib/elasticsearch/api/actions/indices/get_warmer.rb +0 -62
  147. data/lib/elasticsearch/api/actions/indices/optimize.rb +0 -77
  148. data/lib/elasticsearch/api/actions/indices/put_warmer.rb +0 -65
  149. data/lib/elasticsearch/api/actions/indices/seal.rb +0 -24
  150. data/lib/elasticsearch/api/actions/indices/snapshot_index.rb +0 -44
  151. data/lib/elasticsearch/api/actions/indices/status.rb +0 -63
  152. data/lib/elasticsearch/api/actions/list_benchmarks.rb +0 -27
  153. data/lib/elasticsearch/api/actions/mlt.rb +0 -130
  154. data/lib/elasticsearch/api/actions/mpercolate.rb +0 -62
  155. data/lib/elasticsearch/api/actions/nodes/shutdown.rb +0 -39
  156. data/lib/elasticsearch/api/actions/percolate.rb +0 -73
  157. data/lib/elasticsearch/api/actions/put_template.rb +0 -25
  158. data/lib/elasticsearch/api/actions/remote/info.rb +0 -21
  159. data/lib/elasticsearch/api/actions/search_exists.rb +0 -63
  160. data/lib/elasticsearch/api/actions/suggest.rb +0 -49
  161. data/spec/elasticsearch/api/actions/delete_template_spec.rb +0 -17
  162. data/spec/elasticsearch/api/actions/field_stats_spec.rb +0 -17
  163. data/spec/elasticsearch/api/actions/get_template_spec.rb +0 -52
  164. data/spec/elasticsearch/api/actions/indices/delete_mapping_spec.rb +0 -77
  165. data/spec/elasticsearch/api/actions/indices/delete_warmer_spec.rb +0 -86
  166. data/spec/elasticsearch/api/actions/indices/freeze_spec.rb +0 -68
  167. data/spec/elasticsearch/api/actions/indices/get_aliases_spec.rb +0 -55
  168. data/spec/elasticsearch/api/actions/indices/get_warmer_spec.rb +0 -48
  169. data/spec/elasticsearch/api/actions/indices/optimize_spec.rb +0 -63
  170. data/spec/elasticsearch/api/actions/indices/put_warmer_spec.rb +0 -101
  171. data/spec/elasticsearch/api/actions/indices/seal_spec.rb +0 -18
  172. data/spec/elasticsearch/api/actions/indices/snapshot_index_spec.rb +0 -89
  173. data/spec/elasticsearch/api/actions/indices/stats_spec.rb +0 -108
  174. data/spec/elasticsearch/api/actions/indices/status_spec.rb +0 -92
  175. data/spec/elasticsearch/api/actions/indices/unfreeze_spec.rb +0 -68
  176. data/spec/elasticsearch/api/actions/list_benchmarks_spec.rb +0 -17
  177. data/spec/elasticsearch/api/actions/mlt_spec.rb +0 -117
  178. data/spec/elasticsearch/api/actions/mpercolate_spec.rb +0 -49
  179. data/spec/elasticsearch/api/actions/nodes/shutdown_spec.rb +0 -59
  180. data/spec/elasticsearch/api/actions/percolate_spec.rb +0 -67
  181. data/spec/elasticsearch/api/actions/put_template_spec.rb +0 -17
  182. data/spec/elasticsearch/api/actions/remote/info_spec.rb +0 -18
  183. data/spec/elasticsearch/api/actions/search_exists_spec.rb +0 -17
  184. data/spec/elasticsearch/api/actions/suggest_spec.rb +0 -77
@@ -59,14 +59,13 @@ module Elasticsearch
59
59
  # }
60
60
  #
61
61
  # @option arguments [String] :index The name of the index (*Required*)
62
- # @option arguments [Hash] :body Optional configuration for the index (`settings` and `mappings`)
63
- # @option arguments [Boolean] :update_all_types Whether to update the mapping for all fields
64
- # with the same name across all types
65
- # @option arguments [Number] :wait_for_active_shards Wait until the specified number of shards is active
62
+ # @option arguments [Hash] :body The configuration for the index (`settings` and `mappings`)
63
+ # @option arguments [String] :wait_for_active_shards Set the number of active shards to wait for before the operation returns.
66
64
  # @option arguments [Time] :timeout Explicit operation timeout
67
- # @option arguments [Boolean] :master_timeout Timeout for connection to master
65
+ # @option arguments [Time] :master_timeout Specify timeout for connection to master
66
+ # @option arguments [Boolean] :update_all_types Whether to update the mapping for all fields with the same name across all types or not
68
67
  #
69
- # @see http://www.elasticsearch.org/guide/reference/api/admin-indices-create-index/
68
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html
70
69
  #
71
70
  def create(arguments={})
72
71
  raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
@@ -83,10 +82,11 @@ module Elasticsearch
83
82
  #
84
83
  # @since 6.2.0
85
84
  ParamsRegistry.register(:create, [
85
+ :wait_for_active_shards,
86
86
  :timeout,
87
87
  :master_timeout,
88
88
  :update_all_types,
89
- :wait_for_active_shards ].freeze)
89
+ :include_type_name ].freeze)
90
90
  end
91
91
  end
92
92
  end
@@ -23,15 +23,14 @@ module Elasticsearch
23
23
  #
24
24
  # client.indices.delete index: '_all'
25
25
  #
26
- # @option arguments [List] :index A comma-separated list of indices to delete;
27
- # use `_all` to delete all indices
26
+ # @option arguments [List] :index A comma-separated list of indices to delete; use `_all` or `*` string to delete all indices (*Required*)
28
27
  # @option arguments [Time] :timeout Explicit operation timeout
29
28
  # @option arguments [Time] :master_timeout Specify timeout for connection to master
30
29
  # @option arguments [Boolean] :ignore_unavailable Ignore unavailable indexes (default: false)
31
30
  # @option arguments [Boolean] :allow_no_indices Ignore if a wildcard expression resolves to no concrete indices (default: false)
32
- # @option arguments [List] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (options: open, closed, none, all) (default: open)
31
+ # @option arguments [String] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (default: open) (options: open, closed, none, all)
33
32
  #
34
- # @see http://www.elasticsearch.org/guide/reference/api/admin-indices-delete-index/
33
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html
35
34
  #
36
35
  def delete(arguments={})
37
36
  method = HTTP_DELETE
@@ -11,11 +11,12 @@ module Elasticsearch
11
11
  #
12
12
  # See the {Indices::Actions#update_aliases} for performing operations with index aliases in bulk.
13
13
  #
14
- # @option arguments [String] :index The name of the index with an alias (*Required*)
15
- # @option arguments [String] :name The name of the alias to be deleted (*Required*)
14
+ # @option arguments [List] :index A comma-separated list of index names (supports wildcards); use `_all` for all indices (*Required*)
15
+ # @option arguments [List] :name A comma-separated list of aliases to delete (supports wildcards); use `_all` to delete all aliases for the specified indices. (*Required*)
16
16
  # @option arguments [Time] :timeout Explicit timestamp for the document
17
+ # @option arguments [Time] :master_timeout Specify timeout for connection to master
17
18
  #
18
- # @see http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/
19
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html
19
20
  #
20
21
  def delete_alias(arguments={})
21
22
  raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
@@ -32,7 +33,9 @@ module Elasticsearch
32
33
  # Register this action with its valid params when the module is loaded.
33
34
  #
34
35
  # @since 6.2.0
35
- ParamsRegistry.register(:delete_alias, [ :timeout ].freeze)
36
+ ParamsRegistry.register(:delete_alias, [
37
+ :timeout,
38
+ :master_timeout ].freeze)
36
39
  end
37
40
  end
38
41
  end
@@ -15,8 +15,9 @@ module Elasticsearch
15
15
  #
16
16
  # @option arguments [String] :name The name of the template (*Required*)
17
17
  # @option arguments [Time] :timeout Explicit operation timeout
18
+ # @option arguments [Time] :master_timeout Specify timeout for connection to master
18
19
  #
19
- # @see http://www.elasticsearch.org/guide/reference/api/admin-indices-templates/
20
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html
20
21
  #
21
22
  def delete_template(arguments={})
22
23
  raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
@@ -36,7 +37,9 @@ module Elasticsearch
36
37
  # Register this action with its valid params when the module is loaded.
37
38
  #
38
39
  # @since 6.2.0
39
- ParamsRegistry.register(:delete_template, [ :timeout ].freeze)
40
+ ParamsRegistry.register(:delete_template, [
41
+ :timeout,
42
+ :master_timeout ].freeze)
40
43
  end
41
44
  end
42
45
  end
@@ -9,22 +9,15 @@ module Elasticsearch
9
9
  #
10
10
  # client.indices.exists? index: 'myindex'
11
11
  #
12
- # @option arguments [List] :index A comma-separated list of indices to check (*Required*)
13
- # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into
14
- # no concrete indices. (This includes `_all` string or when no
15
- # indices have been specified)
16
- # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that
17
- # are open, closed or both. (options: open, closed)
18
- # @option arguments [String] :ignore_indices When performed on multiple indices, allows to ignore
19
- # `missing` ones (options: none, missing) @until 1.0
20
- # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when
21
- # unavailable (missing, closed, etc)
22
- # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
23
- # (default: false)
12
+ # @option arguments [List] :index A comma-separated list of index names (*Required*)
13
+ # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
14
+ # @option arguments [Boolean] :ignore_unavailable Ignore unavailable indexes (default: false)
15
+ # @option arguments [Boolean] :allow_no_indices Ignore if a wildcard expression resolves to no concrete indices (default: false)
16
+ # @option arguments [String] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (default: open) (options: open, closed, none, all)
17
+ # @option arguments [Boolean] :flat_settings Return settings in flat format (default: false)
18
+ # @option arguments [Boolean] :include_defaults Whether to return all default setting for each of the indices.
24
19
  #
25
- # @return [true,false]
26
- #
27
- # @see http://www.elasticsearch.org/guide/reference/api/admin-indices-indices-exists/
20
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-exists.html
28
21
  #
29
22
  def exists(arguments={})
30
23
  raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
@@ -43,11 +36,12 @@ module Elasticsearch
43
36
  #
44
37
  # @since 6.2.0
45
38
  ParamsRegistry.register(:exists, [
46
- :ignore_indices,
39
+ :local,
47
40
  :ignore_unavailable,
48
41
  :allow_no_indices,
49
42
  :expand_wildcards,
50
- :local ].freeze)
43
+ :flat_settings,
44
+ :include_defaults ].freeze)
51
45
  end
52
46
  end
53
47
  end
@@ -10,20 +10,13 @@ module Elasticsearch
10
10
  # client.indices.exists_alias? name: 'myalias'
11
11
  #
12
12
  # @option arguments [List] :index A comma-separated list of index names to filter aliases
13
- # @option arguments [List] :name A comma-separated list of alias names to return
14
- # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into
15
- # no concrete indices. (This includes `_all` string or when no
16
- # indices have been specified)
17
- # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that
18
- # are open, closed or both. (options: open, closed)
19
- # @option arguments [String] :ignore_indices When performed on multiple indices, allows to ignore
20
- # `missing` ones (options: none, missing) @until 1.0
21
- # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when
22
- # unavailable (missing, closed, etc)
23
- # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
24
- # (default: false)
13
+ # @option arguments [List] :name A comma-separated list of alias names to return (*Required*)
14
+ # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
15
+ # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
16
+ # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
17
+ # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
25
18
  #
26
- # @see http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/
19
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html
27
20
  #
28
21
  def exists_alias(arguments={})
29
22
  method = HTTP_HEAD
@@ -42,7 +35,6 @@ module Elasticsearch
42
35
  #
43
36
  # @since 6.2.0
44
37
  ParamsRegistry.register(:exists_alias, [
45
- :ignore_indices,
46
38
  :ignore_unavailable,
47
39
  :allow_no_indices,
48
40
  :expand_wildcards,
@@ -7,11 +7,12 @@ module Elasticsearch
7
7
  #
8
8
  # client.indices.exists_template? name: 'mytemplate'
9
9
  #
10
- # @option arguments [String] :name The name of the template (*Required*)
11
- # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
10
+ # @option arguments [List] :name The comma separated names of the index templates (*Required*)
11
+ # @option arguments [Boolean] :flat_settings Return settings in flat format (default: false)
12
12
  # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
13
+ # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
13
14
  #
14
- # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/indices-templates.html
15
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html
15
16
  #
16
17
  def exists_template(arguments={})
17
18
  raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
@@ -30,7 +31,10 @@ module Elasticsearch
30
31
  # Register this action with its valid params when the module is loaded.
31
32
  #
32
33
  # @since 6.2.0
33
- ParamsRegistry.register(:exists_template, [ :local, :master_timeout ].freeze)
34
+ ParamsRegistry.register(:exists_template, [
35
+ :flat_settings,
36
+ :master_timeout,
37
+ :local ].freeze)
34
38
  end
35
39
  end
36
40
  end
@@ -7,22 +7,14 @@ module Elasticsearch
7
7
  #
8
8
  # client.indices.exists_type? index: 'myindex', type: 'mytype'
9
9
  #
10
- # @option arguments [List] :index A comma-separated list of index names; use `_all`
11
- # to check the types across all indices (*Required*)
10
+ # @option arguments [List] :index A comma-separated list of index names; use `_all` to check the types across all indices (*Required*)
12
11
  # @option arguments [List] :type A comma-separated list of document types to check (*Required*)
13
- # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into
14
- # no concrete indices. (This includes `_all` string or when no
15
- # indices have been specified)
16
- # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that
17
- # are open, closed or both. (options: open, closed)
18
- # @option arguments [String] :ignore_indices When performed on multiple indices, allows to ignore
19
- # `missing` ones (options: none, missing) @until 1.0
20
- # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when
21
- # unavailable (missing, closed, etc)
22
- # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
23
- # (default: false)
12
+ # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
13
+ # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
14
+ # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
15
+ # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
24
16
  #
25
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-types-exists.html
17
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-types-exists.html
26
18
  #
27
19
  def exists_type(arguments={})
28
20
  raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
@@ -43,7 +35,6 @@ module Elasticsearch
43
35
  #
44
36
  # @since 6.2.0
45
37
  ParamsRegistry.register(:exists_type, [
46
- :ignore_indices,
47
38
  :ignore_unavailable,
48
39
  :allow_no_indices,
49
40
  :expand_wildcards,
@@ -11,15 +11,11 @@ module Elasticsearch
11
11
  # @note The flush operation is handled automatically by Elasticsearch, you don't need to perform it manually.
12
12
  #
13
13
  # @option arguments [List] :index A comma-separated list of index names; use `_all` or empty string for all indices
14
- # @option arguments [Boolean] :force Whether a flush should be forced even if it is not necessarily needed ie.
15
- # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into
16
- # no concrete indices. (This includes `_all` string or when no
17
- # indices have been specified)
18
- # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that
19
- # are open, closed or both. (options: open, closed)
20
- # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when
21
- # unavailable (missing, closed, etc)
22
- # @option arguments [Boolean] :wait_if_ongoing If set to true the flush operation will block until the flush can be executed if another flush operation is already executing. If set to false the flush will be skipped if another flush operation is already running. (Default: true)
14
+ # @option arguments [Boolean] :force Whether a flush should be forced even if it is not necessarily needed ie. if no changes will be committed to the index. This is useful if transaction log IDs should be incremented even if no uncommitted changes are present. (This setting can be considered as internal)
15
+ # @option arguments [Boolean] :wait_if_ongoing If set to true the flush operation will block until the flush can be executed if another flush operation is already executing. The default is true. If set to false the flush will be skipped iff if another flush operation is already running.
16
+ # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
17
+ # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
18
+ # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
23
19
  #
24
20
  # @see http://www.elasticsearch.org/guide/reference/api/admin-indices-flush/
25
21
  #
@@ -8,7 +8,7 @@ module Elasticsearch
8
8
  # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
9
9
  # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
10
10
  #
11
- # @see http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html
11
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-synced-flush.html
12
12
  #
13
13
  def flush_synced(arguments={})
14
14
  method = HTTP_POST
@@ -30,16 +30,15 @@ module Elasticsearch
30
30
  #
31
31
  # client.indices.forcemerge index: '_all'
32
32
  #
33
- # @option arguments [List] :index A comma-separated list of indices to forcemerge;
34
- # use `_all` to forcemerge all indices
35
- # @option arguments [Number] :max_num_segments The number of segments the index should be merged into
36
- # (default: dynamic)
37
- # @option arguments [Boolean] :only_expunge_deletes Specify whether the operation should only expunge
38
- # deleted documents
39
- # @option arguments [Boolean] :flush Specify whether the index should be flushed after performing the operation
40
- # (default: true)
33
+ # @option arguments [List] :index A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
34
+ # @option arguments [Boolean] :flush Specify whether the index should be flushed after performing the operation (default: true)
35
+ # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
36
+ # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
37
+ # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
38
+ # @option arguments [Number] :max_num_segments The number of segments the index should be merged into (default: dynamic)
39
+ # @option arguments [Boolean] :only_expunge_deletes Specify whether the operation should only expunge deleted documents
41
40
  #
42
- # @see http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html
41
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-forcemerge.html
43
42
  #
44
43
  def forcemerge(arguments={})
45
44
  method = HTTP_POST
@@ -55,9 +54,12 @@ module Elasticsearch
55
54
  #
56
55
  # @since 6.2.0
57
56
  ParamsRegistry.register(:forcemerge, [
57
+ :flush,
58
+ :ignore_unavailable,
59
+ :allow_no_indices,
60
+ :expand_wildcards,
58
61
  :max_num_segments,
59
- :only_expunge_deletes,
60
- :flush ].freeze)
62
+ :only_expunge_deletes ].freeze)
61
63
  end
62
64
  end
63
65
  end
@@ -37,4 +37,3 @@ module Elasticsearch
37
37
  end
38
38
  end
39
39
  end
40
-
@@ -6,22 +6,15 @@ module Elasticsearch
6
6
  # Retrieve information about one or more indices
7
7
  #
8
8
  # @option arguments [List] :index A comma-separated list of index names (*Required*)
9
- # @option arguments [List] :feature A comma-separated list of features
10
- # (options: _settings, _mappings, _aliases]
11
- # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
12
- # (default: false)
9
+ # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
13
10
  # @option arguments [Boolean] :ignore_unavailable Ignore unavailable indexes (default: false)
14
- # @option arguments [Boolean] :allow_no_indices Ignore if a wildcard expression resolves to no concrete
15
- # indices (default: false)
16
- # @option arguments [List] :expand_wildcards Whether wildcard expressions should get expanded
17
- # to open or closed indices (default: open)
11
+ # @option arguments [Boolean] :allow_no_indices Ignore if a wildcard expression resolves to no concrete indices (default: false)
12
+ # @option arguments [String] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (default: open) (options: open, closed, none, all)
18
13
  # @option arguments [Boolean] :flat_settings Return settings in flat format (default: false)
19
- # @option arguments [Boolean] :human Whether to return version and creation date values in
20
- # human-readable format (default: false)
21
- # @option arguments [Boolean] :include_defaults Whether to return all default setting
22
- # for each of the indices (default:false)
14
+ # @option arguments [Boolean] :include_defaults Whether to return all default setting for each of the indices.
15
+ # @option arguments [Time] :master_timeout Specify timeout for connection to master
23
16
  #
24
- # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/indices-get-index.html
17
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-index.html
25
18
  #
26
19
  def get(arguments={})
27
20
  raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
@@ -44,8 +37,9 @@ module Elasticsearch
44
37
  :allow_no_indices,
45
38
  :expand_wildcards,
46
39
  :flat_settings,
47
- :human,
48
- :include_defaults ].freeze)
40
+ :include_defaults,
41
+ :master_timeout,
42
+ :include_type_name ].freeze)
49
43
  end
50
44
  end
51
45
  end
@@ -15,19 +15,12 @@ module Elasticsearch
15
15
  #
16
16
  # @option arguments [List] :index A comma-separated list of index names to filter aliases
17
17
  # @option arguments [List] :name A comma-separated list of alias names to return
18
- # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into
19
- # no concrete indices. (This includes `_all` string or when no
20
- # indices have been specified)
21
- # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that
22
- # are open, closed or both. (options: open, closed)
23
- # @option arguments [String] :ignore_indices When performed on multiple indices, allows to ignore
24
- # `missing` ones (options: none, missing) @until 1.0
25
- # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when
26
- # unavailable (missing, closed, etc)
27
- # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
28
- # (default: false)
29
- #
30
- # @see http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/
18
+ # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
19
+ # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
20
+ # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
21
+ # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
22
+ #
23
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html
31
24
  #
32
25
  def get_alias(arguments={})
33
26
  method = HTTP_GET
@@ -43,7 +36,6 @@ module Elasticsearch
43
36
  #
44
37
  # @since 6.2.0
45
38
  ParamsRegistry.register(:get_alias, [
46
- :ignore_indices,
47
39
  :ignore_unavailable,
48
40
  :allow_no_indices,
49
41
  :expand_wildcards,
@@ -18,20 +18,15 @@ module Elasticsearch
18
18
  # client.indices.get_field_mapping index: 'foo', field: ['bar', 'bam']
19
19
  #
20
20
  # @option arguments [List] :index A comma-separated list of index names
21
- # @option arguments [List] :type A comma-separated list of document types
22
- # @option arguments [List] :field A comma-separated list of fields (*Required*)
23
- # @option arguments [Boolean] :include_defaults Whether default mapping values should be returned as well
24
- # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into
25
- # no concrete indices. (This includes `_all` string or when no
26
- # indices have been specified)
27
- # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that
28
- # are open, closed or both. (options: open, closed)
29
- # @option arguments [String] :ignore_indices When performed on multiple indices, allows to ignore
30
- # `missing` ones (options: none, missing) @until 1.0
31
- # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when
32
- # unavailable (missing, closed, etc)
21
+ # @option arguments [List] :type A comma-separated list of document types
22
+ # @option arguments [List] :fields A comma-separated list of fields (*Required*)
23
+ # @option arguments [Boolean] :include_defaults Whether the default mapping values should be returned as well
24
+ # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
25
+ # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
26
+ # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
27
+ # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
33
28
  #
34
- # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-get-field-mapping.html
29
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-field-mapping.html
35
30
  #
36
31
  def get_field_mapping(arguments={})
37
32
  arguments = arguments.clone
@@ -56,10 +51,11 @@ module Elasticsearch
56
51
  # @since 6.2.0
57
52
  ParamsRegistry.register(:get_field_mapping, [
58
53
  :include_defaults,
59
- :ignore_indices,
60
54
  :ignore_unavailable,
61
55
  :allow_no_indices,
62
- :expand_wildcards ].freeze)
56
+ :expand_wildcards,
57
+ :local,
58
+ :include_type_name ].freeze)
63
59
  end
64
60
  end
65
61
  end
@@ -17,21 +17,16 @@ module Elasticsearch
17
17
  #
18
18
  # client.indices.get_mapping index: 'foo', type: 'baz'
19
19
  #
20
- # @option arguments [List] :index A comma-separated list of index names; use `_all` or empty string for all indices
20
+ #
21
+ # @option arguments [List] :index A comma-separated list of index names
21
22
  # @option arguments [List] :type A comma-separated list of document types
22
- # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into
23
- # no concrete indices. (This includes `_all` string or when no
24
- # indices have been specified)
25
- # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that
26
- # are open, closed or both. (options: open, closed)
27
- # @option arguments [String] :ignore_indices When performed on multiple indices, allows to ignore
28
- # `missing` ones (options: none, missing) @until 1.0
29
- # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when
30
- # unavailable (missing, closed, etc)
31
- # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
32
- # (default: false)
33
- #
34
- # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-get-mapping.html
23
+ # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
24
+ # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
25
+ # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
26
+ # @option arguments [Time] :master_timeout Specify timeout for connection to master
27
+ # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
28
+ #
29
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-mapping.html
35
30
  #
36
31
  def get_mapping(arguments={})
37
32
  method = HTTP_GET
@@ -48,11 +43,12 @@ module Elasticsearch
48
43
  #
49
44
  # @since 6.2.0
50
45
  ParamsRegistry.register(:get_mapping, [
51
- :ignore_indices,
52
46
  :ignore_unavailable,
53
47
  :allow_no_indices,
54
48
  :expand_wildcards,
55
- :local ].freeze)
49
+ :master_timeout,
50
+ :local,
51
+ :include_type_name ].freeze)
56
52
  end
57
53
  end
58
54
  end