columnarboolean
By default, ES|QL returns results as rows. For example, FROM returns each individual document as one row. For the JSON, YAML, CBOR and smile formats, ES|QL can return the results in a columnar fashion where one row represents all the values of a certain column in the results.
filterany
Specify a Query DSL query in the filter parameter to filter the set of documents that an ES|QL query runs on.
time_zonestring
Sets the default timezone of the query.
localestring
Returns results (especially dates) formatted per the conventions of the locale.
paramsany
To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters. Use question mark placeholders (?) in the query string for each of the parameters.
profileboolean
If provided and `true` the response will include an extra `profile` object
with information on how the query was executed. This information is for human debugging
and its format can change at any time but it can give some insight into the performance
of each part of the query.
querystringrequired
The ES|QL query API accepts an ES|QL query string in the query parameter, runs it, and returns the results.
tablesobject
Tables to use with the LOOKUP operation. The top level key is the table
name and the next level key is the column name.
include_ccs_metadataboolean
When set to `true` and performing a cross-cluster/cross-project query, the response will include an extra `_clusters`
object with information about the clusters that participated in the search along with info such as shards
count.
Default false
include_execution_metadataboolean
When set to `true`, the response will include an extra `_clusters`
object with information about the clusters that participated in the search along with info such as shards
count.
This is similar to `include_ccs_metadata`, but it also returns metadata when the query is not CCS/CPS
Default false
wait_for_completion_timeoutany
The period to wait for the request to finish.
By default, the request waits for 1 second for the query results.
If the query completes during this period, results are returned
Otherwise, a query ID is returned that can later be used to retrieve the results.
Default "1s"
keep_aliveany
The period for which the query and its results are stored in the cluster.
The default period is five days.
When this period expires, the query and its results are deleted, even if the query is still ongoing.
If the `keep_on_completion` parameter is false, Elasticsearch only stores async queries that do not complete within the period set by the `wait_for_completion_timeout` parameter, regardless of this value.
Default "5d"
keep_on_completionboolean
Indicates whether the query and its results are stored in the cluster.
If false, the query and its results are stored in the cluster only if the request does not complete during the period set by the `wait_for_completion_timeout` parameter.
Default false