Skip to content

Commit 8f8c6c7

Browse files
committed
[API] Updates source code docs esql, create, search
1 parent ae7f656 commit 8f8c6c7

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module Actions
2727
# The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties.
2828
#
2929
# @option arguments [Boolean] :allow_partial_results If +true+, partial results will be returned if there are shard failures, but the query can continue to execute on other clusters and shards.
30+
# If +false+, the query will fail if there are any failures.To override the default behavior, you can set the +esql.query.allow_partial_results+ cluster setting to +false+. Server default: true.
3031
# @option arguments [String] :delimiter The character to use between values within a CSV row.
3132
# It is valid only for the CSV format.
3233
# @option arguments [Boolean] :drop_null_columns Indicates whether columns that are entirely +null+ will be removed from the +columns+ and +values+ portion of the results.

elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ module Actions
3333
# @option arguments [Boolean] :drop_null_columns Should columns that are entirely +null+ be removed from the +columns+ and +values+ portion of the results?
3434
# Defaults to +false+. If +true+ then the response will include an extra section under the name +all_columns+ which has the name of all columns.
3535
# @option arguments [Boolean] :allow_partial_results If +true+, partial results will be returned if there are shard failures, but the query can continue to execute on other clusters and shards.
36+
# If +false+, the query will fail if there are any failures.To override the default behavior, you can set the +esql.query.allow_partial_results+ cluster setting to +false+. Server default: true.
3637
# @option arguments [Hash] :headers Custom HTTP headers
3738
# @option arguments [Hash] :body request body
3839
#

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

+9-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,15 @@ module Actions
3939
# You can change the default of only waiting for the primary shards to start through the index setting +index.write.wait_for_active_shards+.
4040
# Note that changing this setting will also affect the +wait_for_active_shards+ value on all subsequent write operations.
4141
#
42-
# @option arguments [String] :index Name of the index you wish to create. (*Required*)
42+
# @option arguments [String] :index Name of the index you wish to create.
43+
# Index names must meet the following criteria:
44+
# - Lowercase only
45+
# - Cannot include +\+, +/+, +*+, +?+, +"+, +<+, +>+, +|+, ++ (space character), +,+, or +#+
46+
# - Indices prior to 7.0 could contain a colon (+:+), but that has been deprecated and will not be supported in later versions
47+
# - Cannot start with +-+, +_+, or +++
48+
# - Cannot be +.+ or +..+
49+
# - Cannot be longer than 255 bytes (note thtat it is bytes, so multi-byte characters will reach the limit faster)
50+
# - Names starting with +.+ are deprecated, except for hidden indices and internal indices managed by plugins (*Required*)
4351
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node.
4452
# If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
4553
# @option arguments [Time] :timeout Period to wait for a response.

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ module Actions
7676
# - +_local+ to, if possible, run the search on shards on the local node, or if not, select shards using the default method.
7777
# - +_only_nodes:<node-id>,<node-id>+ to run the search on only the specified nodes IDs. If suitable shards exist on more than one selected node, use shards on those nodes using the default method. If none of the specified nodes are available, select shards from any available node using the default method.
7878
# - +_prefer_nodes:<node-id>,<node-id>+ to if possible, run the search on the specified nodes IDs. If not, select shards using the default method.
79-
# +_shards:<shard>,<shard>+ to run the search only on the specified shards. You can combine this value with other +preference+ values. However, the +_shards+ value must come first. For example: +_shards:2,3|_local+.
80-
# +<custom-string>+ (any string that does not start with +_+) to route searches with the same +<custom-string>+ to the same shards in the same order.
79+
# - +_shards:<shard>,<shard>+ to run the search only on the specified shards. You can combine this value with other +preference+ values. However, the +_shards+ value must come first. For example: +_shards:2,3|_local+.
80+
# - +<custom-string>+ (any string that does not start with +_+) to route searches with the same +<custom-string>+ to the same shards in the same order.
8181
# @option arguments [Integer] :pre_filter_shard_size A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold.
8282
# This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method (if date filters are mandatory to match but the shard bounds and the query are disjoint).
8383
# When unspecified, the pre-filter phase is executed if any of these conditions is met:

elasticsearch-api/lib/elasticsearch/api/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
module Elasticsearch
1919
module API
2020
VERSION = '9.0.0'.freeze
21-
ES_SPECIFICATION_COMMIT = '2843115df10df34cd34d22868131fdf7592e2655'.freeze
21+
ES_SPECIFICATION_COMMIT = 'c7ee66d99d0c1d6906bdca079a868c187de23c69'.freeze
2222
end
2323
end

0 commit comments

Comments
 (0)