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
** *`allow_no_indices` (Optional, boolean)*: Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
99
-
** *`analyzer` (Optional, string)*: The analyzer to use for the query string
100
-
** *`analyze_wildcard` (Optional, boolean)*: Specify whether wildcard and prefix queries should be analyzed (default: false)
101
-
** *`default_operator` (Optional, Enum("and" | "or"))*: The default operator for query string query (AND or OR)
102
-
** *`df` (Optional, string)*: The field to use as default where no field prefix is given in the query string
103
-
** *`expand_wildcards` (Optional, Enum("all" | "open" | "closed" | "hidden" | "none") | Enum("all" | "open" | "closed" | "hidden" | "none")[])*: Whether to expand wildcard expression to concrete indices that are open, closed or both.
104
-
** *`ignore_throttled` (Optional, boolean)*: Whether specified concrete, expanded or aliased indices should be ignored when throttled
105
-
** *`ignore_unavailable` (Optional, boolean)*: Whether specified concrete indices should be ignored when unavailable (missing or closed)
106
-
** *`lenient` (Optional, boolean)*: Specify whether format-based query failures (such as providing text to a numeric field) should be ignored
107
-
** *`min_score` (Optional, number)*: Include only documents with a specific `_score` value in the result
108
-
** *`preference` (Optional, string)*: Specify the node or shard the operation should be performed on (default: random)
109
-
** *`routing` (Optional, string)*: A list of specific routing values
110
-
** *`terminate_after` (Optional, number)*: The maximum count for each shard, upon reaching which the query execution will terminate early
111
-
** *`q` (Optional, string)*: Query in the Lucene query string syntax
96
+
** *`index` (Optional, string | string[])*: List of data streams, indices, and aliases to search.
97
+
Supports wildcards (`*`).
98
+
To search all data streams and indices, omit this parameter or use `*` or `_all`.
** *`allow_no_indices` (Optional, boolean)*: If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.
101
+
This behavior applies even if the request targets other open indices.
102
+
** *`analyzer` (Optional, string)*: Analyzer to use for the query string.
103
+
This parameter can only be used when the `q` query string parameter is specified.
104
+
** *`analyze_wildcard` (Optional, boolean)*: If `true`, wildcard and prefix queries are analyzed.
105
+
This parameter can only be used when the `q` query string parameter is specified.
106
+
** *`default_operator` (Optional, Enum("and" | "or"))*: The default operator for query string query: `AND` or `OR`.
107
+
This parameter can only be used when the `q` query string parameter is specified.
108
+
** *`df` (Optional, string)*: Field to use as default where no field prefix is given in the query string.
109
+
This parameter can only be used when the `q` query string parameter is specified.
110
+
** *`expand_wildcards` (Optional, Enum("all" | "open" | "closed" | "hidden" | "none") | Enum("all" | "open" | "closed" | "hidden" | "none")[])*: Type of index that wildcard patterns can match.
111
+
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
112
+
Supports a list of values, such as `open,hidden`.
113
+
** *`ignore_throttled` (Optional, boolean)*: If `true`, concrete, expanded or aliased indices are ignored when frozen.
114
+
** *`ignore_unavailable` (Optional, boolean)*: If `false`, the request returns an error if it targets a missing or closed index.
115
+
** *`lenient` (Optional, boolean)*: If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored.
116
+
** *`min_score` (Optional, number)*: Sets the minimum `_score` value that documents must have to be included in the result.
117
+
** *`preference` (Optional, string)*: Specifies the node or shard the operation should be performed on.
118
+
Random by default.
119
+
** *`routing` (Optional, string)*: Custom value used to route operations to a specific shard.
120
+
** *`terminate_after` (Optional, number)*: Maximum number of documents to collect for each shard.
121
+
If a query reaches this limit, Elasticsearch terminates the query early.
122
+
Elasticsearch collects documents before sorting.
123
+
** *`q` (Optional, string)*: Query in the Lucene query string syntax.
** *`name` (string)*: The name of the search application to be searched.
7246
+
** *`params` (Optional, Record<string, User-defined value>)*: Query parameters specific to this request, which will override any defaults specified in the template.
@@ -8591,7 +8603,7 @@ client.sql.deleteAsync({ id })
8591
8603
==== Arguments
8592
8604
8593
8605
* *Request (object):*
8594
-
** *`id` (string)*: The async search ID
8606
+
** *`id` (string)*: Identifier for the search.
8595
8607
8596
8608
[discrete]
8597
8609
==== get_async
@@ -8607,7 +8619,7 @@ client.sql.getAsync({ id })
8607
8619
==== Arguments
8608
8620
8609
8621
* *Request (object):*
8610
-
** *`id` (string)*: The async search ID
8622
+
** *`id` (string)*: Identifier for the search.
8611
8623
** *`delimiter` (Optional, string)*: Separator for CSV results. The API only supports this parameter for CSV responses.
8612
8624
** *`format` (Optional, string)*: Format for the response. You must specify a format using this parameter or the
8613
8625
Accept HTTP header. If you specify both, the API uses this parameter.
@@ -8630,7 +8642,7 @@ client.sql.getAsyncStatus({ id })
8630
8642
==== Arguments
8631
8643
8632
8644
* *Request (object):*
8633
-
** *`id` (string)*: The async search ID
8645
+
** *`id` (string)*: Identifier for the search.
8634
8646
8635
8647
[discrete]
8636
8648
==== query
@@ -8648,13 +8660,15 @@ client.sql.query({ ... })
8648
8660
* *Request (object):*
8649
8661
** *`catalog` (Optional, string)*: Default catalog (cluster) for queries. If unspecified, the queries execute on the data in the local cluster only.
8650
8662
** *`columnar` (Optional, boolean)*: If true, the results in a columnar fashion: one row represents all the values of a certain column from the current page of results.
8651
-
** *`cursor` (Optional, string)*
8663
+
** *`cursor` (Optional, string)*: Cursor used to retrieve a set of paginated results.
8664
+
If you specify a cursor, the API only uses the `columnar` and `time_zone` request body parameters.
8665
+
It ignores other request body parameters.
8652
8666
** *`fetch_size` (Optional, number)*: The maximum number of rows (or entries) to return in one response
** *`query` (Optional, string)*: SQL query to run.
8655
8669
** *`request_timeout` (Optional, string | -1 | 0)*: The timeout before the request fails.
8656
8670
** *`page_timeout` (Optional, string | -1 | 0)*: The timeout before a pagination request fails.
8657
-
** *`time_zone` (Optional, string)*: Time-zone in ISO 8601 used for executing the query on the server. More information available here.
8671
+
** *`time_zone` (Optional, string)*: ISO-8601 time zone ID for the search.
8658
8672
** *`field_multi_value_leniency` (Optional, boolean)*: Throw an exception when encountering multiple values for a field (default) or be lenient and return the first value from the list (without any guarantees of what that will be - typically the first in natural ascending order).
8659
8673
** *`runtime_mappings` (Optional, Record<string, { fetch_fields, format, input_field, target_field, target_index, script, type }>)*: Defines one or more runtime fields in the search request. These fields take
8660
8674
precedence over mapped fields with the same name.
@@ -8663,7 +8677,7 @@ precedence over mapped fields with the same name.
8663
8677
** *`keep_alive` (Optional, string | -1 | 0)*: Retention period for an async or saved synchronous search.
8664
8678
** *`keep_on_completion` (Optional, boolean)*: If true, Elasticsearch stores synchronous searches if you also specify the wait_for_completion_timeout parameter. If false, Elasticsearch only stores async searches that don’t finish before the wait_for_completion_timeout.
8665
8679
** *`index_using_frozen` (Optional, boolean)*: If true, the search can run on frozen indices. Defaults to false.
8666
-
** *`format` (Optional, string)*: a short version of the Accept header, e.g. json, yaml
8680
+
** *`format` (Optional, string)*: Format for the response.
** *`task_id` (Optional, string | number)*: Cancel the task with specified task id (node_id:task_number)
8839
-
** *`actions` (Optional, string | string[])*: A list of actions that should be cancelled. Leave empty to cancel all.
8840
-
** *`nodes` (Optional, string[])*: A list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes
8841
-
** *`parent_task_id` (Optional, string)*: Cancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all.
8852
+
** *`task_id` (Optional, string | number)*: ID of the task.
8853
+
** *`actions` (Optional, string | string[])*: List or wildcard expression of actions used to limit the request.
8854
+
** *`nodes` (Optional, string[])*: List of node IDs or names used to limit the request.
8855
+
** *`parent_task_id` (Optional, string)*: Parent task ID used to limit the tasks.
8842
8856
** *`wait_for_completion` (Optional, boolean)*: Should the request block until the cancellation of the task and its descendant tasks is completed. Defaults to false
0 commit comments