Skip to content

Commit 5cf2a62

Browse files
committed
[API] Updates APIs
Promoted from experimental: - get_script_context - get_script_languages - indices/resolve_index - rank_eval - open_point_in_time: index is now required - search_mvt: adds track_total_hits parameter Promoted from experimental. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported: - shutdown.delete_node - shutdown.get_node - shutdown.put_node
1 parent 600c2ea commit 5cf2a62

23 files changed

+75
-119
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/cluster/allocation_explain.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def allocation_explain(arguments = {})
3939
Elasticsearch::API::HTTP_GET
4040
end
4141

42-
path = "_cluster/allocation/explain"
42+
path = "_cluster/allocation/explain"
4343
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
4444

4545
body = arguments[:body]

elasticsearch-api/lib/elasticsearch/api/actions/explain.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ def explain(arguments = {})
6565
Elasticsearch::API::HTTP_GET
6666
end
6767

68-
path = if _index && _type && _id
69-
"#{Utils.__listify(_index)}/#{Utils.__listify(_type)}/#{Utils.__listify(_id)}/_explain"
70-
else
71-
"#{Utils.__listify(_index)}/_explain/#{Utils.__listify(_id)}"
72-
end
68+
path = if _index && _type && _id
69+
"#{Utils.__listify(_index)}/#{Utils.__listify(_type)}/#{Utils.__listify(_id)}/_explain"
70+
else
71+
"#{Utils.__listify(_index)}/_explain/#{Utils.__listify(_id)}"
72+
end
7373
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
7474

7575
body = arguments[:body]

elasticsearch-api/lib/elasticsearch/api/actions/field_caps.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ def field_caps(arguments = {})
4444
Elasticsearch::API::HTTP_GET
4545
end
4646

47-
path = if _index
48-
"#{Utils.__listify(_index)}/_field_caps"
49-
else
50-
"_field_caps"
51-
end
47+
path = if _index
48+
"#{Utils.__listify(_index)}/_field_caps"
49+
else
50+
"_field_caps"
51+
end
5252
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
5353

5454
body = arguments[:body]

elasticsearch-api/lib/elasticsearch/api/actions/get_script_context.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ module Elasticsearch
1919
module API
2020
module Actions
2121
# Returns all script contexts.
22-
# This functionality is Experimental and may be changed or removed
23-
# completely in a future release. Elastic will take a best effort approach
24-
# to fix any issues, but experimental features are not subject to the
25-
# support SLA of official GA features.
2622
#
2723
# @option arguments [Hash] :headers Custom HTTP headers
2824
#

elasticsearch-api/lib/elasticsearch/api/actions/get_script_languages.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ module Elasticsearch
1919
module API
2020
module Actions
2121
# Returns available script types, languages and contexts
22-
# This functionality is Experimental and may be changed or removed
23-
# completely in a future release. Elastic will take a best effort approach
24-
# to fix any issues, but experimental features are not subject to the
25-
# support SLA of official GA features.
2622
#
2723
# @option arguments [Hash] :headers Custom HTTP headers
2824
#

elasticsearch-api/lib/elasticsearch/api/actions/indices/analyze.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ def analyze(arguments = {})
4040
Elasticsearch::API::HTTP_GET
4141
end
4242

43-
path = if _index
44-
"#{Utils.__listify(_index)}/_analyze"
45-
else
46-
"_analyze"
47-
end
43+
path = if _index
44+
"#{Utils.__listify(_index)}/_analyze"
45+
else
46+
"_analyze"
47+
end
4848
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
4949

5050
body = arguments[:body]

elasticsearch-api/lib/elasticsearch/api/actions/indices/delete.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module Actions
2626
# @option arguments [Time] :master_timeout Specify timeout for connection to master
2727
# @option arguments [Boolean] :ignore_unavailable Ignore unavailable indexes (default: false)
2828
# @option arguments [Boolean] :allow_no_indices Ignore if a wildcard expression resolves to no concrete indices (default: false)
29-
# @option arguments [String] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (default: open) (options: open, closed, hidden, none, all)
29+
# @option arguments [String] :expand_wildcards Whether wildcard expressions should get expanded to open, closed, or hidden indices (options: open, closed, hidden, none, all)
3030
# @option arguments [Hash] :headers Custom HTTP headers
3131
#
3232
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-delete-index.html

elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_index.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ module API
2020
module Indices
2121
module Actions
2222
# Returns information about any matching indices, aliases, and data streams
23-
# This functionality is Experimental and may be changed or removed
24-
# completely in a future release. Elastic will take a best effort approach
25-
# to fix any issues, but experimental features are not subject to the
26-
# support SLA of official GA features.
2723
#
2824
# @option arguments [List] :name A comma-separated list of names or wildcard expressions
2925
# @option arguments [String] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (default: open) (options: open, closed, hidden, none, all)

elasticsearch-api/lib/elasticsearch/api/actions/indices/validate_query.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ def validate_query(arguments = {})
6060
Elasticsearch::API::HTTP_GET
6161
end
6262

63-
path = if _index && _type
64-
"#{Utils.__listify(_index)}/#{Utils.__listify(_type)}/_validate/query"
65-
elsif _index
66-
"#{Utils.__listify(_index)}/_validate/query"
67-
else
68-
"_validate/query"
69-
end
63+
path = if _index && _type
64+
"#{Utils.__listify(_index)}/#{Utils.__listify(_type)}/_validate/query"
65+
elsif _index
66+
"#{Utils.__listify(_index)}/_validate/query"
67+
else
68+
"_validate/query"
69+
end
7070
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
7171

7272
body = arguments[:body]

elasticsearch-api/lib/elasticsearch/api/actions/mtermvectors.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ def mtermvectors(arguments = {})
6060
Elasticsearch::API::HTTP_GET
6161
end
6262

63-
path = if _index && _type
64-
"#{Utils.__listify(_index)}/#{Utils.__listify(_type)}/_mtermvectors"
65-
elsif _index
66-
"#{Utils.__listify(_index)}/_mtermvectors"
67-
else
68-
"_mtermvectors"
69-
end
63+
path = if _index && _type
64+
"#{Utils.__listify(_index)}/#{Utils.__listify(_type)}/_mtermvectors"
65+
elsif _index
66+
"#{Utils.__listify(_index)}/_mtermvectors"
67+
else
68+
"_mtermvectors"
69+
end
7070
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
7171

7272
if ids

0 commit comments

Comments
 (0)