Skip to content

Commit ff8e0b4

Browse files
committed
[API][DOCS] Updates source code docs for all API endpoints
1 parent 9d2158f commit ff8e0b4

File tree

150 files changed

+1250
-456
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+1250
-456
lines changed

lib/elasticsearch-serverless/api/async_search/get.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,15 @@ module Actions
2626
# If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it.
2727
#
2828
# @option arguments [String] :id A unique identifier for the async search. (*Required*)
29-
# @option arguments [Time] :keep_alive Specifies how long the async search should be available in the cluster. When not specified, the +keep_alive+ set with the corresponding submit async request will be used. Otherwise, it is possible to override the value and extend the validity of the request. When this period expires, the search, if still running, is cancelled. If the search is completed, its saved results are deleted.
29+
# @option arguments [Time] :keep_alive Specifies how long the async search should be available in the cluster.
30+
# When not specified, the +keep_alive+ set with the corresponding submit async request will be used.
31+
# Otherwise, it is possible to override the value and extend the validity of the request.
32+
# When this period expires, the search, if still running, is cancelled.
33+
# If the search is completed, its saved results are deleted.
3034
# @option arguments [Boolean] :typed_keys Specify whether aggregation and suggester names should be prefixed by their respective types in the response
31-
# @option arguments [Time] :wait_for_completion_timeout Specifies to wait for the search to be completed up until the provided timeout. Final results will be returned if available before the timeout expires, otherwise the currently available results will be returned once the timeout expires. By default no timeout is set meaning that the currently available results will be returned without any additional wait.
35+
# @option arguments [Time] :wait_for_completion_timeout Specifies to wait for the search to be completed up until the provided timeout.
36+
# Final results will be returned if available before the timeout expires, otherwise the currently available results will be returned once the timeout expires.
37+
# By default no timeout is set meaning that the currently available results will be returned without any additional wait.
3238
# @option arguments [Hash] :headers Custom HTTP headers
3339
#
3440
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html

lib/elasticsearch-serverless/api/async_search/submit.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,17 @@ module Actions
2929
# The maximum allowed size for a stored async search response can be set by changing the +search.max_async_search_response_size+ cluster level setting.
3030
#
3131
# @option arguments [String, Array] :index A comma-separated list of index names to search; use +_all+ or empty string to perform the operation on all indices
32-
# @option arguments [Time] :wait_for_completion_timeout Blocks and waits until the search is completed up to a certain timeout. When the async search completes within the timeout, the response won’t include the ID as the results are not stored in the cluster. Server default: 1s.
32+
# @option arguments [Time] :wait_for_completion_timeout Blocks and waits until the search is completed up to a certain timeout.
33+
# When the async search completes within the timeout, the response won’t include the ID as the results are not stored in the cluster. Server default: 1s.
3334
# @option arguments [Boolean] :keep_on_completion If +true+, results are stored for later retrieval when the search completes within the +wait_for_completion_timeout+.
34-
# @option arguments [Time] :keep_alive Specifies how long the async search needs to be available. Ongoing async searches and any saved search results are deleted after this period. Server default: 5d.
35+
# @option arguments [Time] :keep_alive Specifies how long the async search needs to be available.
36+
# Ongoing async searches and any saved search results are deleted after this period. Server default: 5d.
3537
# @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)
3638
# @option arguments [Boolean] :allow_partial_search_results Indicate if an error should be returned if there is a partial search failure or timeout
3739
# @option arguments [String] :analyzer The analyzer to use for the query string
3840
# @option arguments [Boolean] :analyze_wildcard Specify whether wildcard and prefix queries should be analyzed (default: false)
39-
# @option arguments [Integer] :batched_reduce_size Affects how often partial results become available, which happens whenever shard results are reduced. A partial reduction is performed every time the coordinating node has received a certain number of new shard responses (5 by default). Server default: 5.
41+
# @option arguments [Integer] :batched_reduce_size Affects how often partial results become available, which happens whenever shard results are reduced.
42+
# A partial reduction is performed every time the coordinating node has received a certain number of new shard responses (5 by default). Server default: 5.
4043
# @option arguments [Boolean] :ccs_minimize_roundtrips The default value is the only supported value.
4144
# @option arguments [String] :default_operator The default operator for query string query (AND or OR)
4245
# @option arguments [String] :df The field to use as default where no field prefix is given in the query string

lib/elasticsearch-serverless/api/bulk.rb

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,23 @@
2121
module ElasticsearchServerless
2222
module API
2323
module Actions
24+
# Bulk index or delete documents.
2425
# Performs multiple indexing or delete operations in a single API call.
2526
# This reduces overhead and can greatly increase indexing speed.
2627
#
2728
# @option arguments [String] :index Name of the data stream, index, or index alias to perform bulk actions on.
28-
# @option arguments [String] :pipeline ID of the pipeline to use to preprocess incoming documents. If the index has a default ingest pipeline specified, then setting the value to +_none+ disables the default ingest pipeline for this request. If a final pipeline is configured it will always run, regardless of the value of this parameter.
29-
# @option arguments [String] :refresh If +true+, Elasticsearch refreshes the affected 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+ do nothing with refreshes. Valid values: +true+, +false+, +wait_for+. Server default: false.
29+
# @option arguments [String] :pipeline ID of the pipeline to use to preprocess incoming documents.
30+
# If the index has a default ingest pipeline specified, then setting the value to +_none+ disables the default ingest pipeline for this request.
31+
# If a final pipeline is configured it will always run, regardless of the value of this parameter.
32+
# @option arguments [String] :refresh If +true+, Elasticsearch refreshes the affected 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+ do nothing with refreshes.
33+
# Valid values: +true+, +false+, +wait_for+. Server default: false.
3034
# @option arguments [String] :routing Custom value used to route operations to a specific shard.
3135
# @option arguments [Boolean, String, Array<String>] :_source +true+ or +false+ to return the +_source+ field or not, or a list of fields to return.
3236
# @option arguments [String, Array<String>] :_source_excludes A comma-separated list of source fields to exclude from the response.
3337
# @option arguments [String, Array<String>] :_source_includes A comma-separated list of source fields to include in the response.
3438
# @option arguments [Time] :timeout Period each action waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. Server default: 1m.
35-
# @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. Set to all or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). Server default: 1.
39+
# @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation.
40+
# Set to all or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). Server default: 1.
3641
# @option arguments [Boolean] :require_alias If +true+, the request’s actions must target an index alias.
3742
# @option arguments [Hash] :headers Custom HTTP headers
3843
# @option arguments [String|Array] :body operations. Array of Strings, Header/Data pairs, or the conveniency "combined" format can be passed, refer to ElasticsearchServerless::API::Utils.bulkify documentation.

lib/elasticsearch-serverless/api/cat/aliases.rb

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,26 @@ module ElasticsearchServerless
2222
module API
2323
module Cat
2424
module Actions
25+
# Get aliases.
2526
# Retrieves the cluster’s index aliases, including filter and routing information.
2627
# The API does not return data stream aliases.
27-
# IMPORTANT: cat APIs are only intended for human consumption using the command line or the Kibana console. They are not intended for use by applications. For application consumption, use the aliases API.
28+
# CAT APIs are only intended for human consumption using the command line or the Kibana console. They are not intended for use by applications. For application consumption, use the aliases API.
2829
#
2930
# @option arguments [String, Array<String>] :name A comma-separated list of aliases to retrieve. Supports wildcards (+*+). To retrieve all aliases, omit this parameter or use +*+ or +_all+.
3031
# @option arguments [String, Array<String>] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both.
31-
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
32+
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
33+
# +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
3234
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
33-
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option can't be combined with any other query string option.
34-
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the local cluster state. If +false+ the list of selected nodes are computed from the cluster state of the master node. In both cases the coordinating node will send requests for further information to each selected node.
35+
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
36+
# can't be combined with any other query string option.
37+
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
38+
# local cluster state. If +false+ the list of selected nodes are computed
39+
# from the cluster state of the master node. In both cases the coordinating
40+
# node will send requests for further information to each selected node.
3541
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
36-
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted. Sorting defaults to ascending and can be changed by setting +:asc+ or +:desc+ as a suffix to the column name.
42+
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
43+
# Sorting defaults to ascending and can be changed by setting +:asc+
44+
# or +:desc+ as a suffix to the column name.
3745
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
3846
# @option arguments [Hash] :headers Custom HTTP headers
3947
#

lib/elasticsearch-serverless/api/cat/component_templates.rb

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,26 @@ module ElasticsearchServerless
2222
module API
2323
module Cat
2424
module Actions
25+
# Get component templates.
2526
# Returns information about component templates in a cluster.
2627
# Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
27-
# IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console.
28+
# CAT APIs are only intended for human consumption using the command line or Kibana console.
2829
# They are not intended for use by applications. For application consumption, use the get component template API.
2930
#
3031
# @option arguments [String] :name The name of the component template. Accepts wildcard expressions. If omitted, all component templates are returned.
31-
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
32+
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
33+
# +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
3234
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
33-
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option can't be combined with any other query string option.
34-
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the local cluster state. If +false+ the list of selected nodes are computed from the cluster state of the master node. In both cases the coordinating node will send requests for further information to each selected node.
35+
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
36+
# can't be combined with any other query string option.
37+
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
38+
# local cluster state. If +false+ the list of selected nodes are computed
39+
# from the cluster state of the master node. In both cases the coordinating
40+
# node will send requests for further information to each selected node.
3541
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
36-
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted. Sorting defaults to ascending and can be changed by setting +:asc+ or +:desc+ as a suffix to the column name.
42+
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
43+
# Sorting defaults to ascending and can be changed by setting +:asc+
44+
# or +:desc+ as a suffix to the column name.
3745
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
3846
# @option arguments [Hash] :headers Custom HTTP headers
3947
#

lib/elasticsearch-serverless/api/cat/count.rb

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,27 @@ module ElasticsearchServerless
2222
module API
2323
module Cat
2424
module Actions
25+
# Get a document count.
2526
# Provides quick access to a document count for a data stream, an index, or an entire cluster.
26-
# NOTE: The document count only includes live documents, not deleted documents which have not yet been removed by the merge process.
27-
# IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console.
27+
# The document count only includes live documents, not deleted documents which have not yet been removed by the merge process.
28+
# CAT APIs are only intended for human consumption using the command line or Kibana console.
2829
# They are not intended for use by applications. For application consumption, use the count API.
2930
#
30-
# @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (+*+). To target all data streams and indices, omit this parameter or use +*+ or +_all+.
31-
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
31+
# @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request.
32+
# Supports wildcards (+*+). To target all data streams and indices, omit this parameter or use +*+ or +_all+.
33+
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
34+
# +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
3235
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
33-
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option can't be combined with any other query string option.
34-
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the local cluster state. If +false+ the list of selected nodes are computed from the cluster state of the master node. In both cases the coordinating node will send requests for further information to each selected node.
36+
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
37+
# can't be combined with any other query string option.
38+
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
39+
# local cluster state. If +false+ the list of selected nodes are computed
40+
# from the cluster state of the master node. In both cases the coordinating
41+
# node will send requests for further information to each selected node.
3542
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
36-
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted. Sorting defaults to ascending and can be changed by setting +:asc+ or +:desc+ as a suffix to the column name.
43+
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
44+
# Sorting defaults to ascending and can be changed by setting +:asc+
45+
# or +:desc+ as a suffix to the column name.
3746
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
3847
# @option arguments [Hash] :headers Custom HTTP headers
3948
#

0 commit comments

Comments
 (0)