mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 01:44:36 -04:00
ESQL: Add docs for the OPTIONS directive (#107013)
This adds the docs for the newly added `OPTIONS` directive to `FROM`.
This commit is contained in:
parent
377c7e568f
commit
f9ae6db319
5 changed files with 76 additions and 3 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
[source,esql]
|
||||
----
|
||||
FROM index_pattern [METADATA fields]
|
||||
FROM index_pattern [METADATA fields] [OPTIONS options]
|
||||
----
|
||||
|
||||
*Parameters*
|
||||
|
@ -17,6 +17,10 @@ A list of indices, data streams or aliases. Supports wildcards and date math.
|
|||
`fields`::
|
||||
A comma-separated list of <<esql-metadata-fields,metadata fields>> to retrieve.
|
||||
|
||||
`options`::
|
||||
A comma-separated list of <<esql-index-options,index options>> to configure
|
||||
data access.
|
||||
|
||||
*Description*
|
||||
|
||||
The `FROM` source command returns a table with data from a data stream, index,
|
||||
|
@ -82,3 +86,11 @@ Use the optional `METADATA` directive to enable <<esql-metadata-fields,metadata
|
|||
----
|
||||
FROM employees METADATA _id
|
||||
----
|
||||
|
||||
Use the optional `OPTIONS` directive to specify <<esql-index-options,index access options>>.
|
||||
This directive must follow `METADATA`, if both are specified:
|
||||
|
||||
[source,esql]
|
||||
----
|
||||
FROM employees* METADATA _index OPTIONS "ignore_unavailable"="true"
|
||||
----
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue