mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
* Remove `es-test-dir` book-scoped variable * Remove `plugins-examples-dir` book-scoped variable * Remove `:dependencies-dir:` and `:xes-repo-dir:` book-scoped variables - In `index.asciidoc`, two variables (`:dependencies-dir:` and `:xes-repo-dir:`) were removed. - In `sql/index.asciidoc`, the `:sql-tests:` path was updated to fuller path - In `esql/index.asciidoc`, the `:esql-tests:` path was updated idem * Replace `es-repo-dir` with `es-ref-dir` * Move `:include-xpack: true` to few files that use it, remove from index.asciidoc
52 lines
1.6 KiB
Text
52 lines
1.6 KiB
Text
[[esql-index-options]]
|
|
=== {esql} index options
|
|
|
|
++++
|
|
<titleabbrev>Index options</titleabbrev>
|
|
++++
|
|
|
|
The `OPTIONS` directive of the <<esql-from,FROM>> command allows configuring
|
|
the way {esql} accesses the data to be queried. The argument passed to this
|
|
directive is a comma-separated list of option name-value pairs, with the option
|
|
name and the corresponding value double-quoted.
|
|
|
|
[source,esql]
|
|
----
|
|
FROM index_pattern [OPTIONS "option1"="value1"[,...[,"optionN"="valueN"]]]
|
|
----
|
|
|
|
These options can only be provided as part of a <<esql-from,FROM>> command,
|
|
and they apply to all the indices provided or matched by an index pattern.
|
|
|
|
The option names and their values are the same as used by the
|
|
<<search-search-api-query-params,Search API>>, however note that the default
|
|
values may differ.
|
|
|
|
The currently supported options are:
|
|
|
|
include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=allow-no-indices]
|
|
+
|
|
Defaults to `true`.
|
|
|
|
// unlike "allow-no-indices", "index-ignore-unavailable" includes a default
|
|
// in common-parms.asciidoc, which is different from QL's -- we need to
|
|
// provide the full text here.
|
|
`ignore_unavailable`::
|
|
(Optional, Boolean) If `false`, the request returns an error if it targets a
|
|
missing or closed index.
|
|
+
|
|
Defaults to `true`.
|
|
|
|
include::{es-ref-dir}/search/search.asciidoc[tag=search-preference]
|
|
|
|
*Examples*
|
|
|
|
[source.merge.styled,esql]
|
|
----
|
|
include::{esql-specs}/from.csv-spec[tag=convertFromDatetimeWithOptions]
|
|
----
|
|
[%header.monospaced.styled,format=dsv,separator=|]
|
|
|===
|
|
include::{esql-specs}/from.csv-spec[tag=convertFromDatetimeWithOptions-result]
|
|
|===
|
|
|