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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 95f0862a557b65c4baf38743f4e6866d77d7d56cd21180ddc1f1fda65a5d992a
4
- data.tar.gz: e18b8bc805755ddcbc2a10d4657b55ee24fb75abc84ea706e07bf5aed304f397
3
+ metadata.gz: 4041f561fb1eeba572e39978c8126a61f6d5f672eb927e02967c07afa795e82a
4
+ data.tar.gz: 1f6da8dd8630042207f6e69ffb55be11648a33013c5835055f59f28887fa590a
5
5
  SHA512:
6
- metadata.gz: 724cfe9f1665465585f0b877e059463cff6cb390302d7350d5432cad3dbd49f2527192dcb3eef70be1e1270b021caa2a3189fc832c4facb68bcb5325eacde5cb
7
- data.tar.gz: 337bc9605d85fd89f1be2bee5674b1e2cac4a8b9c085fd5099c39661b5e4b8fef35402d072a99aa550cb2d97391ce7c8968376b0da47954aa2efd444bef6811c
6
+ metadata.gz: 228212c3a32733b759dbd6dc0f006ea6cfd923d068dbb189d3c59c67c8916081ec78a2d8869d668bf75f75e1bed5fd364bd6d722bf56c2b8ce97db3c9ecb4c7a
7
+ data.tar.gz: f39a27ae8e93cda46cc3b6780e2a5967fb13197d809187fec0c031a4e0f63a908887764208e57a3e8daee894d7cfdbb184b1b5cd4157419bc96373cf4606ae0d
@@ -10,7 +10,7 @@ module Elasticsearch
10
10
  #
11
11
  # @option arguments [String] :name A benchmark name
12
12
  #
13
- # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-benchmark.html
13
+ # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-benchmark.html
14
14
  #
15
15
  def abort_benchmark(arguments={})
16
16
  method = HTTP_POST
@@ -45,7 +45,7 @@ module Elasticsearch
45
45
  # @option arguments [Boolean] :verbose Specify whether to return verbose statistics about each iteration
46
46
  # (default: false)
47
47
  #
48
- # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-benchmark.html
48
+ # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-benchmark.html
49
49
  #
50
50
  def benchmark(arguments={})
51
51
  method = HTTP_PUT
@@ -49,7 +49,7 @@ module Elasticsearch
49
49
  #
50
50
  # @option arguments [String] :index Default index for items which don't provide one
51
51
  # @option arguments [String] :type Default document type for items which don't provide one
52
- # @option arguments [Hash] :body The operation definition and data (action-data pairs), separated by newlines (*Required*). Note that this cannot be empty.
52
+ # @option arguments [Hash] :body The operation definition and data (action-data pairs), separated by newlines (*Required*) Note that this cannot be empty.
53
53
  # @option arguments [String] :wait_for_active_shards Sets the number of shard copies that must be active before proceeding with the bulk operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)
54
54
  # @option arguments [String] :refresh If `true` then refresh the effected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes. (options: true, false, wait_for)
55
55
  # @option arguments [String] :routing Specific routing value
@@ -57,9 +57,9 @@ module Elasticsearch
57
57
  # @option arguments [String] :type Default document type for items which don't provide one
58
58
  # @option arguments [List] :fields Default comma-separated list of fields to return in the response for updates, can be overridden on each sub-request
59
59
  # @option arguments [List] :_source True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request
60
- # @option arguments [List] :_source_exclude Default list of fields to exclude from the returned _source field, can be overridden on each sub-request
61
- # @option arguments [List] :_source_include Default list of fields to extract and return from the _source field, can be overridden on each sub-request
62
- # @option arguments [String] :pipeline The pipeline ID to preprocess incoming documents with
60
+ # @option arguments [List] :_source_excludes Default list of fields to exclude from the returned _source field, can be overridden on each sub-request
61
+ # @option arguments [List] :_source_includes Default list of fields to extract and return from the _source field, can be overridden on each sub-request
62
+ # @option arguments [String] :pipeline The pipeline id to preprocess incoming documents with
63
63
  #
64
64
  # @return [Hash] Deserialized Elasticsearch response
65
65
  #
@@ -96,9 +96,7 @@ module Elasticsearch
96
96
  :type,
97
97
  :fields,
98
98
  :_source,
99
- :_source_exclude,
100
99
  :_source_excludes,
101
- :_source_include,
102
100
  :_source_includes,
103
101
  :pipeline ].freeze)
104
102
  end
@@ -34,16 +34,15 @@ module Elasticsearch
34
34
  # client.cat.aliases format: 'json'
35
35
  #
36
36
  # @option arguments [List] :name A comma-separated list of alias names to return
37
- # @option arguments [List] :h Comma-separated list of column names to display -- see the `help` argument
38
- # @option arguments [Boolean] :v Display column headers as part of the output
39
- # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
40
- # @option arguments [String] :format The output format. Options: 'text', 'json'; default: 'text'
41
- # @option arguments [Boolean] :help Return information about headers
42
- # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
43
- # (default: false)
37
+ # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
38
+ # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
44
39
  # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
40
+ # @option arguments [List] :h Comma-separated list of column names to display
41
+ # @option arguments [Boolean] :help Return help information
42
+ # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
43
+ # @option arguments [Boolean] :v Verbose mode. Display column headers
45
44
  #
46
- # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-aliases.html
45
+ # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cat-aliases.html
47
46
  #
48
47
  def aliases(arguments={})
49
48
  name = arguments.delete(:name)
@@ -59,12 +58,13 @@ module Elasticsearch
59
58
  #
60
59
  # @since 6.2.0
61
60
  ParamsRegistry.register(:aliases, [
61
+ :format,
62
62
  :local,
63
63
  :master_timeout,
64
64
  :h,
65
65
  :help,
66
- :v,
67
- :s ].freeze)
66
+ :s,
67
+ :v ].freeze)
68
68
  end
69
69
  end
70
70
  end
@@ -30,17 +30,16 @@ module Elasticsearch
30
30
  # client.cat.allocation format: 'json'
31
31
  #
32
32
  # @option arguments [List] :node_id A comma-separated list of node IDs or names to limit the returned information
33
- # @option arguments [String] :bytes The unit in which to display byte values (options: b, k, m, g)
34
- # @option arguments [List] :h Comma-separated list of column names to display -- see the `help` argument
35
- # @option arguments [Boolean] :v Display column headers as part of the output
36
- # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
37
- # @option arguments [String] :format The output format. Options: 'text', 'json'; default: 'text'
38
- # @option arguments [Boolean] :help Return information about headers
39
- # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
40
- # (default: false)
33
+ # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
34
+ # @option arguments [String] :bytes The unit in which to display byte values (options: b, k, kb, m, mb, g, gb, t, tb, p, pb)
35
+ # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
41
36
  # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
37
+ # @option arguments [List] :h Comma-separated list of column names to display
38
+ # @option arguments [Boolean] :help Return help information
39
+ # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
40
+ # @option arguments [Boolean] :v Verbose mode. Display column headers
42
41
  #
43
- # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-allocation.html
42
+ # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cat-allocation.html
44
43
  #
45
44
  def allocation(arguments={})
46
45
  node_id = arguments.delete(:node_id)
@@ -56,13 +55,14 @@ module Elasticsearch
56
55
  #
57
56
  # @since 6.2.0
58
57
  ParamsRegistry.register(:allocation, [
58
+ :format,
59
59
  :bytes,
60
60
  :local,
61
61
  :master_timeout,
62
62
  :h,
63
63
  :help,
64
- :v,
65
- :s ].freeze)
64
+ :s,
65
+ :v ].freeze)
66
66
  end
67
67
  end
68
68
  end
@@ -26,16 +26,15 @@ module Elasticsearch
26
26
  # client.cat.count format: 'json'
27
27
  #
28
28
  # @option arguments [List] :index A comma-separated list of index names to limit the returned information
29
- # @option arguments [List] :h Comma-separated list of column names to display -- see the `help` argument
30
- # @option arguments [Boolean] :v Display column headers as part of the output
31
- # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
32
- # @option arguments [String] :format The output format. Options: 'text', 'json'; default: 'text'
33
- # @option arguments [Boolean] :help Return information about headers
34
- # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
35
- # (default: false)
29
+ # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
30
+ # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
36
31
  # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
32
+ # @option arguments [List] :h Comma-separated list of column names to display
33
+ # @option arguments [Boolean] :help Return help information
34
+ # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
35
+ # @option arguments [Boolean] :v Verbose mode. Display column headers
37
36
  #
38
- # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-count.html
37
+ # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cat-count.html
39
38
  #
40
39
  def count(arguments={})
41
40
  index = arguments.delete(:index)
@@ -56,12 +55,13 @@ module Elasticsearch
56
55
  #
57
56
  # @since 6.2.0
58
57
  ParamsRegistry.register(:count, [
58
+ :format,
59
59
  :local,
60
60
  :master_timeout,
61
61
  :h,
62
62
  :help,
63
- :v,
64
- :s ].freeze)
63
+ :s,
64
+ :v ].freeze)
65
65
  end
66
66
  end
67
67
  end
@@ -13,17 +13,18 @@ module Elasticsearch
13
13
  #
14
14
  # client.cat.fielddata fields: 'title,body'
15
15
  #
16
- # @option arguments [List] :fields A comma-separated list of fields to include in the output
17
- # @option arguments [String] :bytes The unit in which to display byte values (options: b, k, m, g)
18
- # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
19
- # (default: false)
16
+ # @option arguments [List] :fields A comma-separated list of fields to return the fielddata size
17
+ # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
18
+ # @option arguments [String] :bytes The unit in which to display byte values (options: b, k, kb, m, mb, g, gb, t, tb, p, pb)
19
+ # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
20
20
  # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
21
21
  # @option arguments [List] :h Comma-separated list of column names to display
22
22
  # @option arguments [Boolean] :help Return help information
23
- # @option arguments [Boolean] :v Verbose mode. Display column headers
24
23
  # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
24
+ # @option arguments [Boolean] :v Verbose mode. Display column headers
25
+ # @option arguments [List] :fields A comma-separated list of fields to return in the output
25
26
  #
26
- # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-fielddata.html
27
+ # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cat-fielddata.html
27
28
  #
28
29
  def fielddata(arguments={})
29
30
  fields = arguments.delete(:fields)
@@ -40,13 +41,14 @@ module Elasticsearch
40
41
  #
41
42
  # @since 6.2.0
42
43
  ParamsRegistry.register(:fielddata, [
44
+ :format,
43
45
  :bytes,
44
46
  :local,
45
47
  :master_timeout,
46
48
  :h,
47
49
  :help,
48
- :v,
49
50
  :s,
51
+ :v,
50
52
  :fields ].freeze)
51
53
  end
52
54
  end
@@ -17,17 +17,16 @@ module Elasticsearch
17
17
  #
18
18
  # client.cat.health format: 'json'
19
19
  #
20
- # @option arguments [Boolean] :ts Whether to display timestamp information
21
- # @option arguments [List] :h Comma-separated list of column names to display -- see the `help` argument
22
- # @option arguments [Boolean] :v Display column headers as part of the output
23
- # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
24
- # @option arguments [String] :format The output format. Options: 'text', 'json'; default: 'text'
25
- # @option arguments [Boolean] :help Return information about headers
26
- # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
27
- # (default: false)
20
+ # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
21
+ # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
28
22
  # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
23
+ # @option arguments [List] :h Comma-separated list of column names to display
24
+ # @option arguments [Boolean] :help Return help information
25
+ # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
26
+ # @option arguments [Boolean] :ts Set to false to disable timestamping
27
+ # @option arguments [Boolean] :v Verbose mode. Display column headers
29
28
  #
30
- # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-health.html
29
+ # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cat-health.html
31
30
  #
32
31
  def health(arguments={})
33
32
  method = HTTP_GET
@@ -43,13 +42,14 @@ module Elasticsearch
43
42
  #
44
43
  # @since 6.2.0
45
44
  ParamsRegistry.register(:health, [
45
+ :format,
46
46
  :local,
47
47
  :master_timeout,
48
48
  :h,
49
49
  :help,
50
+ :s,
50
51
  :ts,
51
- :v,
52
- :s ].freeze)
52
+ :v ].freeze)
53
53
  end
54
54
  end
55
55
  end
@@ -6,8 +6,9 @@ module Elasticsearch
6
6
  # Help information for the Cat API
7
7
  #
8
8
  # @option arguments [Boolean] :help Return help information
9
+ # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
9
10
  #
10
- # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat.html
11
+ # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cat.html
11
12
  #
12
13
  def help(arguments={})
13
14
  method = HTTP_GET
@@ -22,7 +23,8 @@ module Elasticsearch
22
23
  #
23
24
  # @since 6.2.0
24
25
  ParamsRegistry.register(:help, [
25
- :help ].freeze)
26
+ :help,
27
+ :s ].freeze)
26
28
  end
27
29
  end
28
30
  end
@@ -36,20 +36,18 @@ module Elasticsearch
36
36
  # client.cat.indices format: 'json'
37
37
  #
38
38
  # @option arguments [List] :index A comma-separated list of index names to limit the returned information
39
+ # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
39
40
  # @option arguments [String] :bytes The unit in which to display byte values (options: b, k, m, g)
40
- # @option arguments [Boolean] :pri Limit the returned information on primary shards only (default: false)
41
- # @option arguments [List] :h Comma-separated list of column names to display -- see the `help` argument
42
- # @option arguments [Boolean] :v Display column headers as part of the output
43
- # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
44
- # @option arguments [String] :health A health status ("green", "yellow", or "red" to filter only indices
45
- # matching the specified health status (options: green, yellow, red)
46
- # @option arguments [String] :format The output format. Options: 'text', 'json'; default: 'text'
47
- # @option arguments [Boolean] :help Return information about headers
48
- # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
49
- # (default: false)
41
+ # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
50
42
  # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
43
+ # @option arguments [List] :h Comma-separated list of column names to display
44
+ # @option arguments [String] :health A health status ("green", "yellow", or "red" to filter only indices matching the specified health status (options: green, yellow, red)
45
+ # @option arguments [Boolean] :help Return help information
46
+ # @option arguments [Boolean] :pri Set to true to return stats only for primary shards
47
+ # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
48
+ # @option arguments [Boolean] :v Verbose mode. Display column headers
51
49
  #
52
- # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-indices.html
50
+ # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cat-indices.html
53
51
  #
54
52
  def indices(arguments={})
55
53
  index = arguments.delete(:index)
@@ -69,15 +67,16 @@ module Elasticsearch
69
67
  #
70
68
  # @since 6.2.0
71
69
  ParamsRegistry.register(:indices, [
70
+ :format,
72
71
  :bytes,
72
+ :local,
73
+ :master_timeout,
73
74
  :h,
74
75
  :health,
75
76
  :help,
76
- :local,
77
- :master_timeout,
78
77
  :pri,
79
- :v,
80
- :s ].freeze)
78
+ :s,
79
+ :v ].freeze)
81
80
  end
82
81
  end
83
82
  end
@@ -17,16 +17,15 @@ module Elasticsearch
17
17
  #
18
18
  # client.cat.master format: 'json'
19
19
  #
20
- # @option arguments [List] :h Comma-separated list of column names to display -- see the `help` argument
21
- # @option arguments [Boolean] :v Display column headers as part of the output
22
- # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
23
- # @option arguments [String] :format The output format. Options: 'text', 'json'; default: 'text'
24
- # @option arguments [Boolean] :help Return information about headers
25
- # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
26
- # (default: false)
20
+ # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
21
+ # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
27
22
  # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
23
+ # @option arguments [List] :h Comma-separated list of column names to display
24
+ # @option arguments [Boolean] :help Return help information
25
+ # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
26
+ # @option arguments [Boolean] :v Verbose mode. Display column headers
28
27
  #
29
- # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-master.html
28
+ # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cat-master.html
30
29
  #
31
30
  def master(arguments={})
32
31
  method = HTTP_GET
@@ -41,12 +40,13 @@ module Elasticsearch
41
40
  #
42
41
  # @since 6.2.0
43
42
  ParamsRegistry.register(:master, [
43
+ :format,
44
44
  :local,
45
45
  :master_timeout,
46
46
  :h,
47
47
  :help,
48
- :v,
49
- :s ].freeze)
48
+ :s,
49
+ :v ].freeze)
50
50
  end
51
51
  end
52
52
  end
@@ -5,14 +5,15 @@ module Elasticsearch
5
5
 
6
6
  # Display custom node attributes
7
7
  #
8
+ # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
8
9
  # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
9
10
  # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
10
11
  # @option arguments [List] :h Comma-separated list of column names to display
11
12
  # @option arguments [Boolean] :help Return help information
12
- # @option arguments [Boolean] :v Verbose mode. Display column headers
13
13
  # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
14
+ # @option arguments [Boolean] :v Verbose mode. Display column headers
14
15
  #
15
- # @see http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html
16
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-nodeattrs.html
16
17
  #
17
18
  def nodeattrs(arguments={})
18
19
  method = 'GET'
@@ -27,12 +28,13 @@ module Elasticsearch
27
28
  #
28
29
  # @since 6.2.0
29
30
  ParamsRegistry.register(:nodeattrs, [
31
+ :format,
30
32
  :local,
31
33
  :master_timeout,
32
34
  :h,
33
35
  :help,
34
- :v,
35
- :s ].freeze)
36
+ :s,
37
+ :v ].freeze)
36
38
  end
37
39
  end
38
40
  end
@@ -25,17 +25,16 @@ module Elasticsearch
25
25
  #
26
26
  # client.cat.nodes format: 'json'
27
27
  #
28
+ # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
28
29
  # @option arguments [Boolean] :full_id Return the full node ID instead of the shortened version (default: false)
29
- # @option arguments [List] :h Comma-separated list of column names to display -- see the `help` argument
30
- # @option arguments [Boolean] :v Display column headers as part of the output
31
- # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
32
- # @option arguments [String] :format The output format. Options: 'text', 'json'; default: 'text'
33
- # @option arguments [Boolean] :help Return information about headers
34
- # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
35
- # (default: false)
30
+ # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
36
31
  # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
32
+ # @option arguments [List] :h Comma-separated list of column names to display
33
+ # @option arguments [Boolean] :help Return help information
34
+ # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
35
+ # @option arguments [Boolean] :v Verbose mode. Display column headers
37
36
  #
38
- # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-nodes.html
37
+ # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cat-nodes.html
39
38
  #
40
39
  def nodes(arguments={})
41
40
  method = HTTP_GET
@@ -53,13 +52,14 @@ module Elasticsearch
53
52
  #
54
53
  # @since 6.2.0
55
54
  ParamsRegistry.register(:nodes, [
55
+ :format,
56
56
  :full_id,
57
57
  :local,
58
58
  :master_timeout,
59
59
  :h,
60
60
  :help,
61
- :v,
62
- :s ].freeze)
61
+ :s,
62
+ :v ].freeze)
63
63
  end
64
64
  end
65
65
  end