Skip to content

Commit cdcf209

Browse files
Auto-generated API code
1 parent 6455fb9 commit cdcf209

39 files changed

Lines changed: 1315 additions & 1315 deletions

src/Endpoints/AsyncSearch.php

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ public function delete(?array $params = null)
7575
*
7676
* @param array{
7777
* id: string, // (REQUIRED) The async search ID
78-
* wait_for_completion_timeout?: int|string, // Specify the time that the request should block waiting for the final response
79-
* keep_alive?: int|string, // Specify the time interval in which the results (partial or final) for this search will be available
78+
* wait_for_completion_timeout?: int|string, // 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.
79+
* keep_alive?: int|string, // The length of time that 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.
8080
* typed_keys?: bool, // Specify whether aggregation and suggester names should be prefixed by their respective types in the response
8181
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
8282
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
@@ -117,7 +117,7 @@ public function get(?array $params = null)
117117
*
118118
* @param array{
119119
* id: string, // (REQUIRED) The async search ID
120-
* keep_alive?: int|string, // Specify the time interval in which the results (partial or final) for this search will be available
120+
* keep_alive?: int|string, // The length of time that the async search needs to be available. Ongoing async searches and any saved search results are deleted after this period. (DEFAULT: 5d)
121121
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
122122
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
123123
* error_trace?: bool, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -157,15 +157,15 @@ public function status(?array $params = null)
157157
*
158158
* @param array{
159159
* index?: string|array<string>, // A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices
160-
* wait_for_completion_timeout?: int|string, // Specify the time that the request should block waiting for the final response
161-
* keep_on_completion?: bool, // Control whether the response should be stored in the cluster if it completed within the provided [wait_for_completion] time (default: false)
162-
* keep_alive?: int|string, // Update the time interval in which the results (partial or final) for this search will be available
163-
* batched_reduce_size?: int, // The number of shard results that should be reduced at once on the coordinating node. This value should be used as the granularity at which progress results will be made available.
164-
* request_cache?: bool, // Specify if request cache should be used for this request or not, defaults to true
160+
* wait_for_completion_timeout?: int|string, // 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. (DEFAULT: 1s)
161+
* keep_on_completion?: bool, // If `true`, results are stored for later retrieval when the search completes within the `wait_for_completion_timeout`.
162+
* keep_alive?: int|string, // Specifies how long the async search needs to be available. Ongoing async searches and any saved search results are deleted after this period. (DEFAULT: 5d)
163+
* batched_reduce_size?: int, // 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). (DEFAULT: 5)
164+
* request_cache?: bool, // Specify if request cache should be used for this request or not, defaults to true (DEFAULT: 1)
165165
* analyzer?: string, // The analyzer to use for the query string
166-
* analyze_wildcard?: bool, // Specify whether wildcard and prefix queries should be analyzed (default: false)
167-
* ccs_minimize_roundtrips?: bool, // When doing a cross-cluster search, setting it to true may improve overall search latency, particularly when searching clusters with a large number of shards. However, when set to true, the progress of searches on the remote clusters will not be received until the search finishes on all clusters.
168-
* default_operator?: string, // The default operator for query string query (AND or OR)
166+
* analyze_wildcard?: bool, // Specify whether wildcard and prefix queries should be analyzed
167+
* ccs_minimize_roundtrips?: bool, // The default value is the only supported value.
168+
* default_operator?: string, // The default operator for query string query (AND or OR) (DEFAULT: or)
169169
* df?: string, // The field to use as default where no field prefix is given in the query string
170170
* explain?: bool, // Specify whether to return detailed information about score computation as part of a hit
171171
* stored_fields?: string|array<string>, // A comma-separated list of stored fields to return as part of a hit
@@ -174,32 +174,32 @@ public function status(?array $params = null)
174174
* ignore_unavailable?: bool, // Whether specified concrete indices should be ignored when unavailable (missing or closed)
175175
* ignore_throttled?: bool, // Whether specified concrete, expanded or aliased indices should be ignored when throttled
176176
* allow_no_indices?: bool, // Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
177-
* expand_wildcards?: string|array<string>, // Whether to expand wildcard expression to concrete indices that are open, closed or both.
177+
* expand_wildcards?: string|array<string>, // Whether to expand wildcard expression to concrete indices that are open, closed or both (DEFAULT: open)
178178
* lenient?: bool, // Specify whether format-based query failures (such as providing text to a numeric field) should be ignored
179-
* preference?: string, // Specify the node or shard the operation should be performed on (default: random)
179+
* preference?: string, // Specify the node or shard the operation should be performed on (DEFAULT: random)
180180
* rest_total_hits_as_int?: bool, // Indicates whether hits.total should be rendered as an integer or an object in the rest search response
181181
* q?: string, // Query in the Lucene query string syntax
182182
* routing?: string|array<string>, // A comma-separated list of specific routing values
183183
* search_type?: string, // Search operation type
184-
* size?: int, // Number of hits to return
184+
* size?: int, // Number of hits to return (DEFAULT: 10)
185185
* sort?: string|array<string>, // A comma-separated list of <field>:<direction> pairs
186186
* _source?: string|array<string>, // True or false to return the _source field or not, or a list of fields to return
187187
* _source_excludes?: string|array<string>, // A list of fields to exclude from the returned _source field
188188
* _source_includes?: string|array<string>, // A list of fields to extract and return from the _source field
189-
* terminate_after?: int, // The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early.
189+
* terminate_after?: int, // The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early
190190
* stats?: string|array<string>, // Specific 'tag' of the request for logging and statistical purposes
191-
* suggest_field?: string, // Specify which field to use for suggestions
192-
* suggest_mode?: string, // Specify suggest mode
191+
* suggest_field?: string, // Specifies which field to use for suggestions.
192+
* suggest_mode?: string, // Specify suggest mode (DEFAULT: missing)
193193
* suggest_size?: int, // How many suggestions to return in response
194-
* suggest_text?: string, // The source text for which the suggestions should be returned
194+
* suggest_text?: string, // The source text for which the suggestions should be returned.
195195
* timeout?: int|string, // Explicit operation timeout
196196
* track_scores?: bool, // Whether to calculate and return scores even if they are not used for sorting
197197
* track_total_hits?: bool|int, // Indicate if the number of documents that match the query should be tracked. A number can also be specified, to accurately track the total hit count up to the number.
198-
* allow_partial_search_results?: bool, // Indicate if an error should be returned if there is a partial search failure or timeout
198+
* allow_partial_search_results?: bool, // Indicate if an error should be returned if there is a partial search failure or timeout (DEFAULT: 1)
199199
* typed_keys?: bool, // Specify whether aggregation and suggester names should be prefixed by their respective types in the response
200200
* version?: bool, // Specify whether to return document version as part of a hit
201201
* seq_no_primary_term?: bool, // Specify whether to return sequence number and primary term of the last modification of each hit
202-
* max_concurrent_shard_requests?: int, // The number of concurrent shard requests per node this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests
202+
* max_concurrent_shard_requests?: int, // The number of concurrent shard requests per node this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests (DEFAULT: 5)
203203
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
204204
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
205205
* error_trace?: bool, // Include the stack trace of returned errors. (DEFAULT: false)

src/Endpoints/Autoscaling.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ class Autoscaling extends AbstractEndpoint
3535
*
3636
* @param array{
3737
* name: string, // (REQUIRED) the name of the autoscaling policy
38-
* master_timeout?: int|string, // Timeout for processing on master node
39-
* timeout?: int|string, // Timeout for acknowledgement of update from all nodes in cluster
38+
* master_timeout?: int|string, // Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. (DEFAULT: 30s)
39+
* timeout?: int|string, // Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. (DEFAULT: 30s)
4040
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
4141
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
4242
* error_trace?: bool, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -74,7 +74,7 @@ public function deleteAutoscalingPolicy(?array $params = null)
7474
* @link https://www.elastic.co/guide/en/elasticsearch/reference/8.19/autoscaling-get-autoscaling-capacity.html
7575
*
7676
* @param array{
77-
* master_timeout?: int|string, // Timeout for processing on master node
77+
* master_timeout?: int|string, // Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. (DEFAULT: 30s)
7878
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
7979
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
8080
* error_trace?: bool, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -111,7 +111,7 @@ public function getAutoscalingCapacity(?array $params = null)
111111
*
112112
* @param array{
113113
* name: string, // (REQUIRED) the name of the autoscaling policy
114-
* master_timeout?: int|string, // Timeout for processing on master node
114+
* master_timeout?: int|string, // Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. (DEFAULT: 30s)
115115
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
116116
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
117117
* error_trace?: bool, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -150,8 +150,8 @@ public function getAutoscalingPolicy(?array $params = null)
150150
*
151151
* @param array{
152152
* name: string, // (REQUIRED) the name of the autoscaling policy
153-
* master_timeout?: int|string, // Timeout for processing on master node
154-
* timeout?: int|string, // Timeout for acknowledgement of update from all nodes in cluster
153+
* master_timeout?: int|string, // Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. (DEFAULT: 30s)
154+
* timeout?: int|string, // Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. (DEFAULT: 30s)
155155
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
156156
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
157157
* error_trace?: bool, // Include the stack trace of returned errors. (DEFAULT: false)

0 commit comments

Comments
 (0)