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
@@ -23,47 +23,38 @@ module Elasticsearch
23
23
  # @option arguments [Boolean] :analyze_wildcard Specify whether wildcard and prefix queries should be analyzed (default: false)
24
24
  # @option arguments [String] :default_operator The default operator for query string query (AND or OR) (options: AND, OR)
25
25
  # @option arguments [String] :df The field to use as default where no field prefix is given in the query string
26
- # @option arguments [Boolean] :explain Specify whether to return detailed information about score computation as part of a hit
27
- # @option arguments [List] :fields A comma-separated list of fields to return as part of a hit
28
- # @option arguments [List] :fielddata_fields A comma-separated list of fields to return as the field data representation of a field for each hit
29
26
  # @option arguments [Number] :from Starting offset (default: 0)
30
27
  # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
31
28
  # @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)
32
- # @option arguments [String] :conflicts What to do when the reindex hits version conflicts? (options: abort, proceed)
29
+ # @option arguments [String] :conflicts What to do when the update by query hits version conflicts? (options: abort, proceed)
33
30
  # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
34
31
  # @option arguments [Boolean] :lenient Specify whether format-based query failures (such as providing text to a numeric field) should be ignored
35
- # @option arguments [Boolean] :lowercase_expanded_terms Specify whether query terms should be lowercased
36
32
  # @option arguments [String] :pipeline Ingest pipeline to set on index requests made by this action. (default: none)
37
33
  # @option arguments [String] :preference Specify the node or shard the operation should be performed on (default: random)
38
34
  # @option arguments [String] :q Query in the Lucene query string syntax
39
35
  # @option arguments [List] :routing A comma-separated list of specific routing values
40
- # @option arguments [Duration] :scroll Specify how long a consistent view of the index should be maintained for scrolled search
36
+ # @option arguments [Time] :scroll Specify how long a consistent view of the index should be maintained for scrolled search
41
37
  # @option arguments [String] :search_type Search operation type (options: query_then_fetch, dfs_query_then_fetch)
42
38
  # @option arguments [Time] :search_timeout Explicit timeout for each search request. Defaults to no timeout.
43
39
  # @option arguments [Number] :size Number of hits to return (default: 10)
44
40
  # @option arguments [List] :sort A comma-separated list of <field>:<direction> pairs
45
41
  # @option arguments [List] :_source True or false to return the _source field or not, or a list of fields to return
46
- # @option arguments [List] :_source_exclude A list of fields to exclude from the returned _source field
47
- # @option arguments [List] :_source_include A list of fields to extract and return from the _source field
42
+ # @option arguments [List] :_source_excludes A list of fields to exclude from the returned _source field
43
+ # @option arguments [List] :_source_includes A list of fields to extract and return from the _source field
48
44
  # @option arguments [Number] :terminate_after The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early.
49
45
  # @option arguments [List] :stats Specific 'tag' of the request for logging and statistical purposes
50
- # @option arguments [String] :suggest_field Specify which field to use for suggestions
51
- # @option arguments [String] :suggest_mode Specify suggest mode (options: missing, popular, always)
52
- # @option arguments [Number] :suggest_size How many suggestions to return in response
53
- # @option arguments [Text] :suggest_text The source text for which the suggestions should be returned
54
- # @option arguments [Time] :timeout Time each individual bulk request should wait for shards that are unavailable.
55
- # @option arguments [Boolean] :track_scores Whether to calculate and return scores even if they are not used for sorting
56
46
  # @option arguments [Boolean] :version Specify whether to return document version as part of a hit
57
47
  # @option arguments [Boolean] :version_type Should the document increment the version number (internal) on hit or not (reindex)
58
48
  # @option arguments [Boolean] :request_cache Specify if request cache should be used for this request or not, defaults to index level setting
59
49
  # @option arguments [Boolean] :refresh Should the effected indexes be refreshed?
60
- # @option arguments [String] :consistency Explicit write consistency setting for the operation (options: one, quorum, all)
61
- # @option arguments [Integer] :scroll_size Size on the scroll request powering the update_by_query
62
- # @option arguments [Boolean] :wait_for_completion Should the request should block until the reindex is complete.
63
- # @option arguments [Float] :requests_per_second The throttle for this request in sub-requests per second. 0 means set no throttle.
64
- # @option arguments [Integer] :slices The number of slices this task should be divided into. Defaults to 1 meaning the task isn't sliced into subtasks.
50
+ # @option arguments [Time] :timeout Time each individual bulk request should wait for shards that are unavailable.
51
+ # @option arguments [String] :wait_for_active_shards Sets the number of shard copies that must be active before proceeding with the update by query 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)
52
+ # @option arguments [Number] :scroll_size Size on the scroll request powering the update by query
53
+ # @option arguments [Boolean] :wait_for_completion Should the request should block until the update by query operation is complete.
54
+ # @option arguments [Number] :requests_per_second The throttle to set on this request in sub-requests per second. -1 means no throttle.
55
+ # @option arguments [Number] :slices The number of slices this task should be divided into. Defaults to 1 meaning the task isn't sliced into subtasks.
65
56
  #
66
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html
57
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html
67
58
  #
68
59
  def update_by_query(arguments={})
69
60
  raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
@@ -88,16 +79,12 @@ module Elasticsearch
88
79
  :analyze_wildcard,
89
80
  :default_operator,
90
81
  :df,
91
- :explain,
92
- :fields,
93
- :fielddata_fields,
94
82
  :from,
95
83
  :ignore_unavailable,
96
84
  :allow_no_indices,
97
85
  :conflicts,
98
86
  :expand_wildcards,
99
87
  :lenient,
100
- :lowercase_expanded_terms,
101
88
  :pipeline,
102
89
  :preference,
103
90
  :q,
@@ -108,23 +95,16 @@ module Elasticsearch
108
95
  :size,
109
96
  :sort,
110
97
  :_source,
111
- :_source_exclude,
112
98
  :_source_excludes,
113
- :_source_include,
114
99
  :_source_includes,
115
100
  :terminate_after,
116
101
  :stats,
117
- :suggest_field,
118
- :suggest_mode,
119
- :suggest_size,
120
- :suggest_text,
121
- :timeout,
122
- :track_scores,
123
102
  :version,
124
103
  :version_type,
125
104
  :request_cache,
126
105
  :refresh,
127
- :consistency,
106
+ :timeout,
107
+ :wait_for_active_shards,
128
108
  :scroll_size,
129
109
  :wait_for_completion,
130
110
  :requests_per_second,
@@ -0,0 +1,29 @@
1
+ module Elasticsearch
2
+ module API
3
+ module Actions
4
+
5
+ # The value of requests_per_second can be changed on a running update by query using the _rethrottle API
6
+ #
7
+ # @option arguments [String] :task_id The task id to rethrottle (*Required*)
8
+ # @option arguments [Number] :requests_per_second The throttle to set on this request in floating sub-requests per second. -1 means set no throttle.
9
+ #
10
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html
11
+ #
12
+ def update_by_query_rethrottle(arguments={})
13
+ raise ArgumentError, "Required argument 'task_id' missing" unless arguments[:task_id]
14
+ method = Elasticsearch::API::HTTP_POST
15
+ path = "_update_by_query/#{arguments[:task_id]}/_rethrottle"
16
+ params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
17
+ body = nil
18
+
19
+ perform_request(method, path, params, body).body
20
+ end
21
+
22
+ # Register this action with its valid params when the module is loaded.
23
+ #
24
+ # @since 6.2.0
25
+ ParamsRegistry.register(:update_by_query_rethrottle, [
26
+ :requests_per_second ].freeze)
27
+ end
28
+ end
29
+ end
@@ -1,5 +1,5 @@
1
1
  module Elasticsearch
2
2
  module API
3
- VERSION = "6.2.0"
3
+ VERSION = "6.3.0"
4
4
  end
5
5
  end
@@ -32,21 +32,4 @@ describe 'client.cluster#state' do
32
32
  expect(client_double.cluster.state(metric: ['foo', 'bar'])).to eq({})
33
33
  end
34
34
  end
35
-
36
- context 'when index templates are specified' do
37
-
38
- let(:expected_args) do
39
- [
40
- 'GET',
41
- '_cluster/state',
42
- { index_templates: 'foo,bar' },
43
- nil,
44
- nil
45
- ]
46
- end
47
-
48
- it 'performs the request' do
49
- expect(client_double.cluster.state(index_templates: ['foo', 'bar'])).to eq({})
50
- end
51
- end
52
35
  end
@@ -15,4 +15,21 @@ describe 'client.cluster#stats' do
15
15
  it 'performs the request' do
16
16
  expect(client_double.cluster.stats).to eq({})
17
17
  end
18
+
19
+ context 'when a node_id is specified' do
20
+
21
+ let(:expected_args) do
22
+ [
23
+ 'GET',
24
+ '_cluster/stats/nodes/1',
25
+ {},
26
+ nil,
27
+ nil
28
+ ]
29
+ end
30
+
31
+ it 'performs the request' do
32
+ expect(client_double.cluster.stats(node_id: 1)).to eq({})
33
+ end
34
+ end
18
35
  end
@@ -43,17 +43,6 @@ describe 'client.indices#analyze' do
43
43
  end
44
44
  end
45
45
 
46
- context 'when an url params are specified' do
47
-
48
- let(:params) do
49
- { text: 'foo', analyzer: 'bar' }
50
- end
51
-
52
- it 'performs the request' do
53
- expect(client_double.indices.analyze(text: 'foo', analyzer: 'bar')).to eq({})
54
- end
55
- end
56
-
57
46
  context 'when a body is specified' do
58
47
 
59
48
  let(:body) do
@@ -64,30 +53,4 @@ describe 'client.indices#analyze' do
64
53
  expect(client_double.indices.analyze(body: 'foo')).to eq({})
65
54
  end
66
55
  end
67
-
68
- context 'when filters are specified' do
69
-
70
- let(:params) do
71
- { filters: 'foo,bar', text: 'Test', tokenizer: 'whitespace' }
72
- end
73
-
74
- it 'performs the request' do
75
- expect(client_double.indices.analyze(text: 'Test', tokenizer: 'whitespace', filters: ['foo,bar'])).to eq({})
76
- end
77
- end
78
-
79
- context 'when path must be URL-escaped' do
80
-
81
- let(:url) do
82
- 'foo%5Ebar/_analyze'
83
- end
84
-
85
- let(:params) do
86
- { text: 'Test', index: 'foo^bar' }
87
- end
88
-
89
- it 'performs the request' do
90
- expect(client_double.indices.analyze(index: 'foo^bar', text: 'Test')).to eq({})
91
- end
92
- end
93
56
  end
@@ -41,21 +41,6 @@ describe 'client.cluster#put_settings' do
41
41
  end
42
42
  end
43
43
 
44
- context 'when parameters are specified' do
45
-
46
- let(:params) do
47
- { flat_settings: true }
48
- end
49
-
50
- let(:url) do
51
- 'foo/_settings'
52
- end
53
-
54
- it 'performs the request' do
55
- expect(client_double.indices.put_settings(index: 'foo', flat_settings: true, body: {})).to eq({})
56
- end
57
- end
58
-
59
44
  context 'when an index is specified' do
60
45
 
61
46
  let(:url) do
@@ -61,21 +61,6 @@ describe 'client.cluster#refresh' do
61
61
  end
62
62
  end
63
63
 
64
- context 'when parameters are specified' do
65
-
66
- let(:params) do
67
- { ignore_indices: 'missing' }
68
- end
69
-
70
- let(:url) do
71
- 'foo/_refresh'
72
- end
73
-
74
- it 'performs the request' do
75
- expect(client_double.indices.refresh(index: 'foo', ignore_indices: 'missing')).to eq({})
76
- end
77
- end
78
-
79
64
  context 'when the path needs to be URL-escaped' do
80
65
 
81
66
  let(:url) do
@@ -61,21 +61,6 @@ describe 'client.cluster#segments' do
61
61
  end
62
62
  end
63
63
 
64
- context 'when parameters are specified' do
65
-
66
- let(:params) do
67
- { ignore_indices: 'missing' }
68
- end
69
-
70
- let(:url) do
71
- 'foo/_segments'
72
- end
73
-
74
- it 'performs the request' do
75
- expect(client_double.indices.segments(index: 'foo', ignore_indices: 'missing')).to eq({})
76
- end
77
- end
78
-
79
64
  context 'when the path needs to be URL-escaped' do
80
65
 
81
66
  let(:url) do
@@ -66,21 +66,6 @@ describe 'client#mget' do
66
66
  it 'performs the request' do
67
67
  expect(client_double.mget(body: {}, refresh: true)).to eq({})
68
68
  end
69
-
70
- context 'when the fields parameter is specified' do
71
-
72
- let(:params) do
73
- { fields: 'foo,bar' }
74
- end
75
-
76
- let(:body) do
77
- {}
78
- end
79
-
80
- it 'performs the request' do
81
- expect(client_double.mget(body: {}, fields: ['foo', 'bar'])).to eq({})
82
- end
83
- end
84
69
  end
85
70
 
86
71
  context 'when the request needs to be URL-escaped' do
@@ -113,19 +113,4 @@ describe 'client#search' do
113
113
  }.to raise_exception(ArgumentError)
114
114
  end
115
115
  end
116
-
117
- context 'when the request field params are not URL-encoded' do
118
-
119
- let(:params) do
120
- { fields: 'foo^bar'}
121
- end
122
-
123
- let(:url) do
124
- 'foo/bar/_search'
125
- end
126
-
127
- it 'does not encode the field params' do
128
- expect(client_double.search(index: 'foo', type: 'bar', fields: 'foo^bar'))
129
- end
130
- end
131
116
  end
@@ -143,7 +143,7 @@ module Elasticsearch
143
143
 
144
144
  def symbolize_keys(object)
145
145
  if object.is_a? Hash
146
- object.reduce({}) { |memo,(k,v)| memo[k.to_sym] = symbolize_keys(v); memo }
146
+ object.reduce({}) { |memo,(k,v)| memo[k.to_s.to_sym] = symbolize_keys(v); memo }
147
147
  else
148
148
  object
149
149
  end
@@ -297,9 +297,7 @@ suites.each do |suite|
297
297
  #
298
298
  setup do
299
299
  $helper_client.indices.delete index: '_all', ignore: 404
300
- $helper_client.indices.delete_template name: 'test_2', ignore: 404
301
- $helper_client.indices.delete_template name: 'test', ignore: 404
302
- $helper_client.indices.delete_template name: 'index_template', ignore: 404
300
+ $helper_client.indices.delete_template name: '*', ignore: 404
303
301
  $helper_client.snapshot.delete repository: 'test_repo_create_1', snapshot: 'test_snapshot', ignore: 404
304
302
  $helper_client.snapshot.delete repository: 'test_repo_restore_1', snapshot: 'test_snapshot', ignore: 404
305
303
  $helper_client.snapshot.delete repository: 'test_cat_snapshots_1', snapshot: 'snap1', ignore: 404
@@ -47,6 +47,7 @@ module Elasticsearch
47
47
  copy_file "templates/ruby/test_helper.rb", @output.join('test').join('test_helper.rb') if options[:language] == 'ruby'
48
48
 
49
49
  Dir[@input].each do |file|
50
+ next if File.basename(file)[0] == '_'
50
51
  @path = Pathname(file)
51
52
  @json = MultiJson.load( File.read(@path) )
52
53
  @spec = @json.values.first
@@ -35,14 +35,10 @@ module Elasticsearch
35
35
  <%= ' '*(@namespace_depth+1) + "raise ArgumentError, \"Required argument 'body' missing\" unless arguments[:body]" + "\n" -%>
36
36
  <%- end -%>
37
37
  <%# Method, path, params, body -%>
38
- <%- unless @spec['url']['params'].empty? -%>
39
- <%= ' '*@namespace_depth %> valid_params = [
40
- <%= ' '*(@namespace_depth+2) %><%= @spec['url']['params'].keys.map { |k| ":#{k}" }.join(",\n#{' '*(@namespace_depth+5)}") %> ]
41
- <%- end -%>
42
38
  <%= ' '*@namespace_depth %> method = <%= @http_method %>
43
39
  <%= ' '*@namespace_depth %> path = "<%= @http_path %>"
44
40
  <%- unless @spec['url']['params'].empty? -%>
45
- <%= ' '*@namespace_depth %> params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, valid_params
41
+ <%= ' '*@namespace_depth %> params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
46
42
  <%- else -%>
47
43
  <%= ' '*@namespace_depth %> params = {}
48
44
  <%- end -%>
@@ -53,6 +49,12 @@ module Elasticsearch
53
49
  <%- @namespace_depth.downto(1) do |i| -%>
54
50
  <%= ' '*(i-1) %>end
55
51
  <%- end if @namespace_depth > 0 -%>
52
+
53
+ <%= ' '*@namespace_depth -%># Register this action with its valid params when the module is loaded.
54
+ <%= ' '*@namespace_depth -%>#
55
+ <%= ' '*@namespace_depth -%># @since 6.2.0
56
+ <%= ' '*@namespace_depth -%>ParamsRegistry.register(:<%= @method_name -%>, [
57
+ <%= ' '*(@namespace_depth +2) + @spec['url']['params'].keys.map { |k| ":#{k}" }.join(",\n#{' '*(@namespace_depth+5)}") %> ].freeze)
56
58
  end
57
59
  end
58
60
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.0
4
+ version: 6.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karel Minarik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-13 00:00:00.000000000 Z
11
+ date: 2019-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -334,7 +334,7 @@ dependencies:
334
334
  version: '2'
335
335
  description: 'Ruby API for Elasticsearch. See the `elasticsearch` gem for full integration.
336
336
 
337
- '
337
+ '
338
338
  email:
339
339
  - karel.minarik@elasticsearch.org
340
340
  executables: []
@@ -391,16 +391,15 @@ files:
391
391
  - lib/elasticsearch/api/actions/create.rb
392
392
  - lib/elasticsearch/api/actions/delete.rb
393
393
  - lib/elasticsearch/api/actions/delete_by_query.rb
394
+ - lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb
394
395
  - lib/elasticsearch/api/actions/delete_script.rb
395
- - lib/elasticsearch/api/actions/delete_template.rb
396
396
  - lib/elasticsearch/api/actions/exists.rb
397
+ - lib/elasticsearch/api/actions/exists_source.rb
397
398
  - lib/elasticsearch/api/actions/explain.rb
398
399
  - lib/elasticsearch/api/actions/field_caps.rb
399
- - lib/elasticsearch/api/actions/field_stats.rb
400
400
  - lib/elasticsearch/api/actions/get.rb
401
401
  - lib/elasticsearch/api/actions/get_script.rb
402
402
  - lib/elasticsearch/api/actions/get_source.rb
403
- - lib/elasticsearch/api/actions/get_template.rb
404
403
  - lib/elasticsearch/api/actions/index.rb
405
404
  - lib/elasticsearch/api/actions/indices/analyze.rb
406
405
  - lib/elasticsearch/api/actions/indices/clear_cache.rb
@@ -408,9 +407,7 @@ files:
408
407
  - lib/elasticsearch/api/actions/indices/create.rb
409
408
  - lib/elasticsearch/api/actions/indices/delete.rb
410
409
  - lib/elasticsearch/api/actions/indices/delete_alias.rb
411
- - lib/elasticsearch/api/actions/indices/delete_mapping.rb
412
410
  - lib/elasticsearch/api/actions/indices/delete_template.rb
413
- - lib/elasticsearch/api/actions/indices/delete_warmer.rb
414
411
  - lib/elasticsearch/api/actions/indices/exists.rb
415
412
  - lib/elasticsearch/api/actions/indices/exists_alias.rb
416
413
  - lib/elasticsearch/api/actions/indices/exists_template.rb
@@ -421,31 +418,24 @@ files:
421
418
  - lib/elasticsearch/api/actions/indices/freeze.rb
422
419
  - lib/elasticsearch/api/actions/indices/get.rb
423
420
  - lib/elasticsearch/api/actions/indices/get_alias.rb
424
- - lib/elasticsearch/api/actions/indices/get_aliases.rb
425
421
  - lib/elasticsearch/api/actions/indices/get_field_mapping.rb
426
422
  - lib/elasticsearch/api/actions/indices/get_mapping.rb
427
423
  - lib/elasticsearch/api/actions/indices/get_settings.rb
428
424
  - lib/elasticsearch/api/actions/indices/get_template.rb
429
- - lib/elasticsearch/api/actions/indices/get_warmer.rb
430
425
  - lib/elasticsearch/api/actions/indices/open.rb
431
- - lib/elasticsearch/api/actions/indices/optimize.rb
432
426
  - lib/elasticsearch/api/actions/indices/params_registry.rb
433
427
  - lib/elasticsearch/api/actions/indices/put_alias.rb
434
428
  - lib/elasticsearch/api/actions/indices/put_mapping.rb
435
429
  - lib/elasticsearch/api/actions/indices/put_settings.rb
436
430
  - lib/elasticsearch/api/actions/indices/put_template.rb
437
- - lib/elasticsearch/api/actions/indices/put_warmer.rb
438
431
  - lib/elasticsearch/api/actions/indices/recovery.rb
439
432
  - lib/elasticsearch/api/actions/indices/refresh.rb
440
433
  - lib/elasticsearch/api/actions/indices/rollover.rb
441
- - lib/elasticsearch/api/actions/indices/seal.rb
442
434
  - lib/elasticsearch/api/actions/indices/segments.rb
443
435
  - lib/elasticsearch/api/actions/indices/shard_stores.rb
444
436
  - lib/elasticsearch/api/actions/indices/shrink.rb
445
- - lib/elasticsearch/api/actions/indices/snapshot_index.rb
446
437
  - lib/elasticsearch/api/actions/indices/split.rb
447
438
  - lib/elasticsearch/api/actions/indices/stats.rb
448
- - lib/elasticsearch/api/actions/indices/status.rb
449
439
  - lib/elasticsearch/api/actions/indices/unfreeze.rb
450
440
  - lib/elasticsearch/api/actions/indices/update_aliases.rb
451
441
  - lib/elasticsearch/api/actions/indices/upgrade.rb
@@ -454,12 +444,10 @@ files:
454
444
  - lib/elasticsearch/api/actions/ingest/delete_pipeline.rb
455
445
  - lib/elasticsearch/api/actions/ingest/get_pipeline.rb
456
446
  - lib/elasticsearch/api/actions/ingest/params_registry.rb
447
+ - lib/elasticsearch/api/actions/ingest/processor_grok.rb
457
448
  - lib/elasticsearch/api/actions/ingest/put_pipeline.rb
458
449
  - lib/elasticsearch/api/actions/ingest/simulate.rb
459
- - lib/elasticsearch/api/actions/list_benchmarks.rb
460
450
  - lib/elasticsearch/api/actions/mget.rb
461
- - lib/elasticsearch/api/actions/mlt.rb
462
- - lib/elasticsearch/api/actions/mpercolate.rb
463
451
  - lib/elasticsearch/api/actions/msearch.rb
464
452
  - lib/elasticsearch/api/actions/msearch_template.rb
465
453
  - lib/elasticsearch/api/actions/mtermvectors.rb
@@ -467,19 +455,18 @@ files:
467
455
  - lib/elasticsearch/api/actions/nodes/info.rb
468
456
  - lib/elasticsearch/api/actions/nodes/params_registry.rb
469
457
  - lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb
470
- - lib/elasticsearch/api/actions/nodes/shutdown.rb
471
458
  - lib/elasticsearch/api/actions/nodes/stats.rb
459
+ - lib/elasticsearch/api/actions/nodes/usage.rb
472
460
  - lib/elasticsearch/api/actions/params_registry.rb
473
- - lib/elasticsearch/api/actions/percolate.rb
474
461
  - lib/elasticsearch/api/actions/ping.rb
475
462
  - lib/elasticsearch/api/actions/put_script.rb
476
- - lib/elasticsearch/api/actions/put_template.rb
463
+ - lib/elasticsearch/api/actions/rank_eval.rb
477
464
  - lib/elasticsearch/api/actions/reindex.rb
478
- - lib/elasticsearch/api/actions/remote/info.rb
465
+ - lib/elasticsearch/api/actions/reindex_rethrottle.rb
479
466
  - lib/elasticsearch/api/actions/render_search_template.rb
467
+ - lib/elasticsearch/api/actions/scripts_painless_execute.rb
480
468
  - lib/elasticsearch/api/actions/scroll.rb
481
469
  - lib/elasticsearch/api/actions/search.rb
482
- - lib/elasticsearch/api/actions/search_exists.rb
483
470
  - lib/elasticsearch/api/actions/search_shards.rb
484
471
  - lib/elasticsearch/api/actions/search_template.rb
485
472
  - lib/elasticsearch/api/actions/snapshot/create.rb
@@ -492,7 +479,6 @@ files:
492
479
  - lib/elasticsearch/api/actions/snapshot/restore.rb
493
480
  - lib/elasticsearch/api/actions/snapshot/status.rb
494
481
  - lib/elasticsearch/api/actions/snapshot/verify_repository.rb
495
- - lib/elasticsearch/api/actions/suggest.rb
496
482
  - lib/elasticsearch/api/actions/tasks/cancel.rb
497
483
  - lib/elasticsearch/api/actions/tasks/get.rb
498
484
  - lib/elasticsearch/api/actions/tasks/list.rb
@@ -500,6 +486,7 @@ files:
500
486
  - lib/elasticsearch/api/actions/termvectors.rb
501
487
  - lib/elasticsearch/api/actions/update.rb
502
488
  - lib/elasticsearch/api/actions/update_by_query.rb
489
+ - lib/elasticsearch/api/actions/update_by_query_rethrottle.rb
503
490
  - lib/elasticsearch/api/namespace/cat.rb
504
491
  - lib/elasticsearch/api/namespace/cluster.rb
505
492
  - lib/elasticsearch/api/namespace/common.rb
@@ -550,15 +537,12 @@ files:
550
537
  - spec/elasticsearch/api/actions/delete_by_query_spec.rb
551
538
  - spec/elasticsearch/api/actions/delete_document_spec.rb
552
539
  - spec/elasticsearch/api/actions/delete_script_spec.rb
553
- - spec/elasticsearch/api/actions/delete_template_spec.rb
554
540
  - spec/elasticsearch/api/actions/exists_document_spec.rb
555
541
  - spec/elasticsearch/api/actions/explain_document_spec.rb
556
542
  - spec/elasticsearch/api/actions/field_caps_spec.rb
557
- - spec/elasticsearch/api/actions/field_stats_spec.rb
558
543
  - spec/elasticsearch/api/actions/get_document_source_spec.rb
559
544
  - spec/elasticsearch/api/actions/get_document_spec.rb
560
545
  - spec/elasticsearch/api/actions/get_script_spec.rb
561
- - spec/elasticsearch/api/actions/get_template_spec.rb
562
546
  - spec/elasticsearch/api/actions/hashie_spec.rb
563
547
  - spec/elasticsearch/api/actions/index_document_spec.rb
564
548
  - spec/elasticsearch/api/actions/indices/analyze_spec.rb
@@ -566,10 +550,8 @@ files:
566
550
  - spec/elasticsearch/api/actions/indices/close_spec.rb
567
551
  - spec/elasticsearch/api/actions/indices/create_spec.rb
568
552
  - spec/elasticsearch/api/actions/indices/delete_alias_spec.rb
569
- - spec/elasticsearch/api/actions/indices/delete_mapping_spec.rb
570
553
  - spec/elasticsearch/api/actions/indices/delete_spec.rb
571
554
  - spec/elasticsearch/api/actions/indices/delete_template_spec.rb
572
- - spec/elasticsearch/api/actions/indices/delete_warmer_spec.rb
573
555
  - spec/elasticsearch/api/actions/indices/exists_alias_spec.rb
574
556
  - spec/elasticsearch/api/actions/indices/exists_spec.rb
575
557
  - spec/elasticsearch/api/actions/indices/exists_template_spec.rb
@@ -577,34 +559,24 @@ files:
577
559
  - spec/elasticsearch/api/actions/indices/flush_spec.rb
578
560
  - spec/elasticsearch/api/actions/indices/flush_synced_spec.rb
579
561
  - spec/elasticsearch/api/actions/indices/forcemerge_spec.rb
580
- - spec/elasticsearch/api/actions/indices/freeze_spec.rb
581
562
  - spec/elasticsearch/api/actions/indices/get_alias_spec.rb
582
- - spec/elasticsearch/api/actions/indices/get_aliases_spec.rb
583
563
  - spec/elasticsearch/api/actions/indices/get_field_mapping_spec.rb
584
564
  - spec/elasticsearch/api/actions/indices/get_mapping_spec.rb
585
565
  - spec/elasticsearch/api/actions/indices/get_settings_spec.rb
586
566
  - spec/elasticsearch/api/actions/indices/get_spec.rb
587
567
  - spec/elasticsearch/api/actions/indices/get_template_spec.rb
588
- - spec/elasticsearch/api/actions/indices/get_warmer_spec.rb
589
568
  - spec/elasticsearch/api/actions/indices/open_spec.rb
590
- - spec/elasticsearch/api/actions/indices/optimize_spec.rb
591
569
  - spec/elasticsearch/api/actions/indices/put_alias_spec.rb
592
570
  - spec/elasticsearch/api/actions/indices/put_mapping_spec.rb
593
571
  - spec/elasticsearch/api/actions/indices/put_settings_spec.rb
594
572
  - spec/elasticsearch/api/actions/indices/put_template_spec.rb
595
- - spec/elasticsearch/api/actions/indices/put_warmer_spec.rb
596
573
  - spec/elasticsearch/api/actions/indices/recovery_spec.rb
597
574
  - spec/elasticsearch/api/actions/indices/refresh_spec.rb
598
575
  - spec/elasticsearch/api/actions/indices/rollover_spec.rb
599
- - spec/elasticsearch/api/actions/indices/seal_spec.rb
600
576
  - spec/elasticsearch/api/actions/indices/segments_spec.rb
601
577
  - spec/elasticsearch/api/actions/indices/shard_stores_spec.rb
602
578
  - spec/elasticsearch/api/actions/indices/shrink_spec.rb
603
- - spec/elasticsearch/api/actions/indices/snapshot_index_spec.rb
604
579
  - spec/elasticsearch/api/actions/indices/split_spec.rb
605
- - spec/elasticsearch/api/actions/indices/stats_spec.rb
606
- - spec/elasticsearch/api/actions/indices/status_spec.rb
607
- - spec/elasticsearch/api/actions/indices/unfreeze_spec.rb
608
580
  - spec/elasticsearch/api/actions/indices/update_aliases_spec.rb
609
581
  - spec/elasticsearch/api/actions/indices/upgrade_spec.rb
610
582
  - spec/elasticsearch/api/actions/indices/validate_query_spec.rb
@@ -614,27 +586,19 @@ files:
614
586
  - spec/elasticsearch/api/actions/ingest/put_pipeline_spec.rb
615
587
  - spec/elasticsearch/api/actions/ingest/simulate_spec.rb
616
588
  - spec/elasticsearch/api/actions/json_builders_spec.rb
617
- - spec/elasticsearch/api/actions/list_benchmarks_spec.rb
618
589
  - spec/elasticsearch/api/actions/mget_spec.rb
619
- - spec/elasticsearch/api/actions/mlt_spec.rb
620
- - spec/elasticsearch/api/actions/mpercolate_spec.rb
621
590
  - spec/elasticsearch/api/actions/msearch_spec.rb
622
591
  - spec/elasticsearch/api/actions/msearch_template_spec.rb
623
592
  - spec/elasticsearch/api/actions/mtermvectors_spec.rb
624
593
  - spec/elasticsearch/api/actions/nodes/hot_threads_spec.rb
625
594
  - spec/elasticsearch/api/actions/nodes/info_spec.rb
626
595
  - spec/elasticsearch/api/actions/nodes/reload_secure_settings_spec.rb
627
- - spec/elasticsearch/api/actions/nodes/shutdown_spec.rb
628
596
  - spec/elasticsearch/api/actions/nodes/stats_spec.rb
629
- - spec/elasticsearch/api/actions/percolate_spec.rb
630
597
  - spec/elasticsearch/api/actions/ping_spec.rb
631
598
  - spec/elasticsearch/api/actions/put_script_spec.rb
632
- - spec/elasticsearch/api/actions/put_template_spec.rb
633
599
  - spec/elasticsearch/api/actions/reindex_spec.rb
634
- - spec/elasticsearch/api/actions/remote/info_spec.rb
635
600
  - spec/elasticsearch/api/actions/render_search_template_spec.rb
636
601
  - spec/elasticsearch/api/actions/scoll_spec.rb
637
- - spec/elasticsearch/api/actions/search_exists_spec.rb
638
602
  - spec/elasticsearch/api/actions/search_shards_spec.rb
639
603
  - spec/elasticsearch/api/actions/search_spec.rb
640
604
  - spec/elasticsearch/api/actions/search_template_spec.rb
@@ -647,7 +611,6 @@ files:
647
611
  - spec/elasticsearch/api/actions/snapshot/restore_spec.rb
648
612
  - spec/elasticsearch/api/actions/snapshot/status_spec.rb
649
613
  - spec/elasticsearch/api/actions/snapshot/verify_repository_spec.rb
650
- - spec/elasticsearch/api/actions/suggest_spec.rb
651
614
  - spec/elasticsearch/api/actions/tasks/cancel_spec.rb
652
615
  - spec/elasticsearch/api/actions/tasks/get_spec.rb
653
616
  - spec/elasticsearch/api/actions/tasks/list_spec.rb
@@ -688,7 +651,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
688
651
  - !ruby/object:Gem::Version
689
652
  version: '0'
690
653
  requirements: []
691
- rubygems_version: 3.0.2
654
+ rubygems_version: 3.0.3
692
655
  signing_key:
693
656
  specification_version: 4
694
657
  summary: Ruby API for Elasticsearch.
@@ -732,15 +695,12 @@ test_files:
732
695
  - spec/elasticsearch/api/actions/delete_by_query_spec.rb
733
696
  - spec/elasticsearch/api/actions/delete_document_spec.rb
734
697
  - spec/elasticsearch/api/actions/delete_script_spec.rb
735
- - spec/elasticsearch/api/actions/delete_template_spec.rb
736
698
  - spec/elasticsearch/api/actions/exists_document_spec.rb
737
699
  - spec/elasticsearch/api/actions/explain_document_spec.rb
738
700
  - spec/elasticsearch/api/actions/field_caps_spec.rb
739
- - spec/elasticsearch/api/actions/field_stats_spec.rb
740
701
  - spec/elasticsearch/api/actions/get_document_source_spec.rb
741
702
  - spec/elasticsearch/api/actions/get_document_spec.rb
742
703
  - spec/elasticsearch/api/actions/get_script_spec.rb
743
- - spec/elasticsearch/api/actions/get_template_spec.rb
744
704
  - spec/elasticsearch/api/actions/hashie_spec.rb
745
705
  - spec/elasticsearch/api/actions/index_document_spec.rb
746
706
  - spec/elasticsearch/api/actions/indices/analyze_spec.rb
@@ -748,10 +708,8 @@ test_files:
748
708
  - spec/elasticsearch/api/actions/indices/close_spec.rb
749
709
  - spec/elasticsearch/api/actions/indices/create_spec.rb
750
710
  - spec/elasticsearch/api/actions/indices/delete_alias_spec.rb
751
- - spec/elasticsearch/api/actions/indices/delete_mapping_spec.rb
752
711
  - spec/elasticsearch/api/actions/indices/delete_spec.rb
753
712
  - spec/elasticsearch/api/actions/indices/delete_template_spec.rb
754
- - spec/elasticsearch/api/actions/indices/delete_warmer_spec.rb
755
713
  - spec/elasticsearch/api/actions/indices/exists_alias_spec.rb
756
714
  - spec/elasticsearch/api/actions/indices/exists_spec.rb
757
715
  - spec/elasticsearch/api/actions/indices/exists_template_spec.rb
@@ -759,34 +717,24 @@ test_files:
759
717
  - spec/elasticsearch/api/actions/indices/flush_spec.rb
760
718
  - spec/elasticsearch/api/actions/indices/flush_synced_spec.rb
761
719
  - spec/elasticsearch/api/actions/indices/forcemerge_spec.rb
762
- - spec/elasticsearch/api/actions/indices/freeze_spec.rb
763
720
  - spec/elasticsearch/api/actions/indices/get_alias_spec.rb
764
- - spec/elasticsearch/api/actions/indices/get_aliases_spec.rb
765
721
  - spec/elasticsearch/api/actions/indices/get_field_mapping_spec.rb
766
722
  - spec/elasticsearch/api/actions/indices/get_mapping_spec.rb
767
723
  - spec/elasticsearch/api/actions/indices/get_settings_spec.rb
768
724
  - spec/elasticsearch/api/actions/indices/get_spec.rb
769
725
  - spec/elasticsearch/api/actions/indices/get_template_spec.rb
770
- - spec/elasticsearch/api/actions/indices/get_warmer_spec.rb
771
726
  - spec/elasticsearch/api/actions/indices/open_spec.rb
772
- - spec/elasticsearch/api/actions/indices/optimize_spec.rb
773
727
  - spec/elasticsearch/api/actions/indices/put_alias_spec.rb
774
728
  - spec/elasticsearch/api/actions/indices/put_mapping_spec.rb
775
729
  - spec/elasticsearch/api/actions/indices/put_settings_spec.rb
776
730
  - spec/elasticsearch/api/actions/indices/put_template_spec.rb
777
- - spec/elasticsearch/api/actions/indices/put_warmer_spec.rb
778
731
  - spec/elasticsearch/api/actions/indices/recovery_spec.rb
779
732
  - spec/elasticsearch/api/actions/indices/refresh_spec.rb
780
733
  - spec/elasticsearch/api/actions/indices/rollover_spec.rb
781
- - spec/elasticsearch/api/actions/indices/seal_spec.rb
782
734
  - spec/elasticsearch/api/actions/indices/segments_spec.rb
783
735
  - spec/elasticsearch/api/actions/indices/shard_stores_spec.rb
784
736
  - spec/elasticsearch/api/actions/indices/shrink_spec.rb
785
- - spec/elasticsearch/api/actions/indices/snapshot_index_spec.rb
786
737
  - spec/elasticsearch/api/actions/indices/split_spec.rb
787
- - spec/elasticsearch/api/actions/indices/stats_spec.rb
788
- - spec/elasticsearch/api/actions/indices/status_spec.rb
789
- - spec/elasticsearch/api/actions/indices/unfreeze_spec.rb
790
738
  - spec/elasticsearch/api/actions/indices/update_aliases_spec.rb
791
739
  - spec/elasticsearch/api/actions/indices/upgrade_spec.rb
792
740
  - spec/elasticsearch/api/actions/indices/validate_query_spec.rb
@@ -796,27 +744,19 @@ test_files:
796
744
  - spec/elasticsearch/api/actions/ingest/put_pipeline_spec.rb
797
745
  - spec/elasticsearch/api/actions/ingest/simulate_spec.rb
798
746
  - spec/elasticsearch/api/actions/json_builders_spec.rb
799
- - spec/elasticsearch/api/actions/list_benchmarks_spec.rb
800
747
  - spec/elasticsearch/api/actions/mget_spec.rb
801
- - spec/elasticsearch/api/actions/mlt_spec.rb
802
- - spec/elasticsearch/api/actions/mpercolate_spec.rb
803
748
  - spec/elasticsearch/api/actions/msearch_spec.rb
804
749
  - spec/elasticsearch/api/actions/msearch_template_spec.rb
805
750
  - spec/elasticsearch/api/actions/mtermvectors_spec.rb
806
751
  - spec/elasticsearch/api/actions/nodes/hot_threads_spec.rb
807
752
  - spec/elasticsearch/api/actions/nodes/info_spec.rb
808
753
  - spec/elasticsearch/api/actions/nodes/reload_secure_settings_spec.rb
809
- - spec/elasticsearch/api/actions/nodes/shutdown_spec.rb
810
754
  - spec/elasticsearch/api/actions/nodes/stats_spec.rb
811
- - spec/elasticsearch/api/actions/percolate_spec.rb
812
755
  - spec/elasticsearch/api/actions/ping_spec.rb
813
756
  - spec/elasticsearch/api/actions/put_script_spec.rb
814
- - spec/elasticsearch/api/actions/put_template_spec.rb
815
757
  - spec/elasticsearch/api/actions/reindex_spec.rb
816
- - spec/elasticsearch/api/actions/remote/info_spec.rb
817
758
  - spec/elasticsearch/api/actions/render_search_template_spec.rb
818
759
  - spec/elasticsearch/api/actions/scoll_spec.rb
819
- - spec/elasticsearch/api/actions/search_exists_spec.rb
820
760
  - spec/elasticsearch/api/actions/search_shards_spec.rb
821
761
  - spec/elasticsearch/api/actions/search_spec.rb
822
762
  - spec/elasticsearch/api/actions/search_template_spec.rb
@@ -829,7 +769,6 @@ test_files:
829
769
  - spec/elasticsearch/api/actions/snapshot/restore_spec.rb
830
770
  - spec/elasticsearch/api/actions/snapshot/status_spec.rb
831
771
  - spec/elasticsearch/api/actions/snapshot/verify_repository_spec.rb
832
- - spec/elasticsearch/api/actions/suggest_spec.rb
833
772
  - spec/elasticsearch/api/actions/tasks/cancel_spec.rb
834
773
  - spec/elasticsearch/api/actions/tasks/get_spec.rb
835
774
  - spec/elasticsearch/api/actions/tasks/list_spec.rb