You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Endpoints/AsyncSearch.php
+20-20Lines changed: 20 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -75,8 +75,8 @@ public function delete(?array $params = null)
75
75
*
76
76
* @param array{
77
77
* 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.
80
80
* typed_keys?: bool, // Specify whether aggregation and suggester names should be prefixed by their respective types in the response
81
81
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
82
82
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
@@ -117,7 +117,7 @@ public function get(?array $params = null)
117
117
*
118
118
* @param array{
119
119
* 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)
121
121
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
122
122
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
123
123
* error_trace?: bool, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -157,15 +157,15 @@ public function status(?array $params = null)
157
157
*
158
158
* @param array{
159
159
* 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)
165
165
* 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)
169
169
* df?: string, // The field to use as default where no field prefix is given in the query string
170
170
* explain?: bool, // Specify whether to return detailed information about score computation as part of a hit
171
171
* 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)
174
174
* ignore_unavailable?: bool, // Whether specified concrete indices should be ignored when unavailable (missing or closed)
175
175
* ignore_throttled?: bool, // Whether specified concrete, expanded or aliased indices should be ignored when throttled
176
176
* 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)
178
178
* 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)
180
180
* rest_total_hits_as_int?: bool, // Indicates whether hits.total should be rendered as an integer or an object in the rest search response
181
181
* q?: string, // Query in the Lucene query string syntax
182
182
* routing?: string|array<string>, // A comma-separated list of specific routing values
183
183
* search_type?: string, // Search operation type
184
-
* size?: int, // Number of hits to return
184
+
* size?: int, // Number of hits to return (DEFAULT: 10)
185
185
* sort?: string|array<string>, // A comma-separated list of <field>:<direction> pairs
186
186
* _source?: string|array<string>, // True or false to return the _source field or not, or a list of fields to return
187
187
* _source_excludes?: string|array<string>, // A list of fields to exclude from the returned _source field
188
188
* _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
190
190
* 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.
* track_scores?: bool, // Whether to calculate and return scores even if they are not used for sorting
197
197
* 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)
199
199
* typed_keys?: bool, // Specify whether aggregation and suggester names should be prefixed by their respective types in the response
200
200
* version?: bool, // Specify whether to return document version as part of a hit
201
201
* 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)
203
203
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
204
204
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
205
205
* error_trace?: bool, // Include the stack trace of returned errors. (DEFAULT: false)
Copy file name to clipboardExpand all lines: src/Endpoints/Autoscaling.php
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -35,8 +35,8 @@ class Autoscaling extends AbstractEndpoint
35
35
*
36
36
* @param array{
37
37
* 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)
40
40
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
41
41
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
42
42
* error_trace?: bool, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -74,7 +74,7 @@ public function deleteAutoscalingPolicy(?array $params = null)
* 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)
78
78
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
79
79
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
80
80
* error_trace?: bool, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -111,7 +111,7 @@ public function getAutoscalingCapacity(?array $params = null)
111
111
*
112
112
* @param array{
113
113
* 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)
115
115
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
116
116
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
117
117
* error_trace?: bool, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -150,8 +150,8 @@ public function getAutoscalingPolicy(?array $params = null)
150
150
*
151
151
* @param array{
152
152
* 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)
155
155
* pretty?: bool, // Pretty format the returned JSON response. (DEFAULT: false)
156
156
* human?: bool, // Return human readable values for statistics. (DEFAULT: true)
157
157
* error_trace?: bool, // Include the stack trace of returned errors. (DEFAULT: false)
0 commit comments