2019-08-02 08:42:33 -04:00
|
|
|
|
2019-08-29 09:44:58 -04:00
|
|
|
tag::index-alias[]
|
|
|
|
Comma-separated list or wildcard expression of index alias names
|
|
|
|
used to limit the request.
|
|
|
|
end::index-alias[]
|
|
|
|
|
2019-09-04 11:47:32 -04:00
|
|
|
tag::aliases[]
|
|
|
|
`aliases`::
|
|
|
|
(Optional, <<indices-aliases,alias object>>) Index aliases which include the
|
|
|
|
index. See <<indices-aliases>>.
|
|
|
|
end::aliases[]
|
|
|
|
|
2019-08-29 12:56:10 -04:00
|
|
|
tag::index-alias-filter[]
|
|
|
|
<<query-dsl-bool-query, Filter query>>
|
|
|
|
used to limit the index alias.
|
|
|
|
+
|
|
|
|
If specified,
|
|
|
|
the index alias only applies to documents returned by the filter.
|
|
|
|
end::index-alias-filter[]
|
|
|
|
|
2019-08-21 09:42:10 -04:00
|
|
|
tag::allow-no-indices[]
|
|
|
|
`allow_no_indices`::
|
|
|
|
(Optional, boolean) If `true`, the request returns an error if a wildcard
|
|
|
|
expression or `_all` value retrieves only missing or closed indices. This
|
|
|
|
parameter also applies to <<indices-aliases,index aliases>> that point to a
|
|
|
|
missing or closed index.
|
|
|
|
end::allow-no-indices[]
|
|
|
|
|
2019-08-29 12:56:10 -04:00
|
|
|
tag::analyzer[]
|
|
|
|
analyzer`::
|
|
|
|
(Optional, string) Analyzer to use for the query string.
|
|
|
|
end::analyzer[]
|
|
|
|
|
|
|
|
tag::analyze_wildcard[]
|
|
|
|
`analyze_wildcard`::
|
|
|
|
(Optional, boolean) If `true`, wildcard and prefix queries are
|
|
|
|
analyzed. Defaults to `false`.
|
|
|
|
end::analyze_wildcard[]
|
|
|
|
|
2019-08-05 11:17:37 -04:00
|
|
|
tag::bytes[]
|
|
|
|
`bytes`::
|
|
|
|
(Optional, <<byte-units,byte size units>>) Unit used to display byte values.
|
|
|
|
end::bytes[]
|
|
|
|
|
2019-08-29 12:56:10 -04:00
|
|
|
tag::default_operator[]
|
|
|
|
`default_operator`::
|
|
|
|
(Optional, string) The default operator for query string query: AND or OR.
|
|
|
|
Defaults to `OR`.
|
|
|
|
end::default_operator[]
|
|
|
|
|
|
|
|
tag::df[]
|
|
|
|
`df`::
|
|
|
|
(Optional, string) Field to use as default where no field prefix is
|
|
|
|
given in the query string.
|
|
|
|
end::df[]
|
|
|
|
|
2019-08-21 09:42:10 -04:00
|
|
|
tag::expand-wildcards[]
|
|
|
|
`expand_wildcards`::
|
|
|
|
+
|
|
|
|
--
|
|
|
|
(Optional, string) Controls what kind of indices that wildcard
|
|
|
|
expressions can expand to. Valid values are:
|
|
|
|
|
|
|
|
`all`::
|
|
|
|
Expand to open and closed indices.
|
|
|
|
|
|
|
|
`open`::
|
|
|
|
Expand only to open indices.
|
|
|
|
|
|
|
|
`closed`::
|
|
|
|
Expand only to closed indices.
|
|
|
|
|
|
|
|
`none`::
|
|
|
|
Wildcard expressions are not accepted.
|
|
|
|
--
|
|
|
|
end::expand-wildcards[]
|
|
|
|
|
2019-08-07 10:46:39 -04:00
|
|
|
tag::flat-settings[]
|
|
|
|
`flat_settings`::
|
2019-08-12 17:50:15 -04:00
|
|
|
(Optional, boolean) If `true`, returns settings in flat format. Defaults to
|
2019-08-07 10:46:39 -04:00
|
|
|
`false`.
|
|
|
|
end::flat-settings[]
|
|
|
|
|
2019-08-05 08:27:15 -04:00
|
|
|
tag::http-format[]
|
|
|
|
`format`::
|
|
|
|
(Optional, string) Short version of the
|
|
|
|
https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html[HTTP accept header].
|
|
|
|
Valid values include JSON, YAML, etc.
|
|
|
|
end::http-format[]
|
|
|
|
|
2019-08-29 12:56:10 -04:00
|
|
|
tag::from[]
|
|
|
|
`from`::
|
|
|
|
(Optional, integer) Starting document offset. Defaults to `0`.
|
|
|
|
end::from[]
|
|
|
|
|
|
|
|
tag::cat-h[]
|
|
|
|
`h`::
|
|
|
|
(Optional, string) Comma-separated list of column names to display.
|
|
|
|
end::cat-h[]
|
|
|
|
|
|
|
|
tag::help[]
|
|
|
|
`help`::
|
|
|
|
(Optional, boolean) If `true`, the response returns help information. Defaults
|
|
|
|
to `false`.
|
|
|
|
end::help[]
|
|
|
|
|
|
|
|
tag::if_primary_term[]
|
|
|
|
`if_primary_term`::
|
|
|
|
(Optional, integer) Only perform the operation if the document has
|
|
|
|
this primary term. See <<optimistic-concurrency-control-index>>.
|
|
|
|
end::if_primary_term[]
|
|
|
|
|
|
|
|
tag::if_seq_no[]
|
|
|
|
`if_seq_no`::
|
|
|
|
(Optional, integer) Only perform the operation if the document has this
|
|
|
|
sequence number. See <<optimistic-concurrency-control-index>>.
|
|
|
|
end::if_seq_no[]
|
|
|
|
|
2019-08-29 10:38:48 -04:00
|
|
|
tag::cat-h[]
|
|
|
|
`h`::
|
|
|
|
(Optional, string) Comma-separated list of column names to display.
|
|
|
|
end::cat-h[]
|
|
|
|
|
|
|
|
tag::help[]
|
|
|
|
`help`::
|
|
|
|
(Optional, boolean) If `true`, the response returns help information. Defaults
|
|
|
|
to `false`.
|
|
|
|
end::help[]
|
|
|
|
|
2019-08-23 11:14:51 -04:00
|
|
|
tag::include-defaults[]
|
|
|
|
`include_defaults`::
|
|
|
|
(Optional, string) If `true`, return all default settings in the response.
|
|
|
|
Defaults to `false`.
|
|
|
|
end::include-defaults[]
|
|
|
|
|
2019-08-21 09:42:10 -04:00
|
|
|
tag::include-type-name[]
|
|
|
|
`include_type_name`::
|
|
|
|
deprecated:[7.0.0, Mapping types have been deprecated. See <<removal-of-types>>.]
|
|
|
|
(Optional, boolean) If `true`, a mapping type is expected in the body of
|
|
|
|
mappings. Defaults to `false`.
|
|
|
|
end::include-type-name[]
|
|
|
|
|
|
|
|
tag::index-ignore-unavailable[]
|
|
|
|
`ignore_unavailable`::
|
|
|
|
(Optional, boolean) If `true`, missing or closed indices are not included in the
|
|
|
|
response. Defaults to `false`.
|
|
|
|
end::index-ignore-unavailable[]
|
|
|
|
|
2019-08-07 09:08:09 -04:00
|
|
|
tag::include-unloaded-segments[]
|
|
|
|
`include_unloaded_segments`::
|
|
|
|
(Optional, boolean) If `true`, the response includes information from segments
|
|
|
|
that are **not** loaded into memory. Defaults to `false`.
|
|
|
|
end::include-unloaded-segments[]
|
|
|
|
|
2019-08-06 08:36:22 -04:00
|
|
|
tag::index[]
|
2019-08-23 10:57:20 -04:00
|
|
|
`<index>`::
|
2019-08-07 09:08:09 -04:00
|
|
|
(Optional, string) Comma-separated list or wildcard expression of index names
|
|
|
|
used to limit the request.
|
2019-08-06 08:36:22 -04:00
|
|
|
end::index[]
|
|
|
|
|
2019-08-29 13:18:47 -04:00
|
|
|
tag::index-template[]
|
|
|
|
`<index-template>`::
|
|
|
|
(Required, string)
|
|
|
|
Comma-separated list or wildcard expression of index template names
|
|
|
|
used to limit the request.
|
|
|
|
end::index-template[]
|
|
|
|
|
2019-08-29 12:56:10 -04:00
|
|
|
tag::lenient[]
|
|
|
|
`lenient`::
|
|
|
|
(Optional, boolean) If `true`, format-based query failures (such as
|
|
|
|
providing text to a numeric field) will be ignored. Defaults to `false`.
|
|
|
|
end::lenient[]
|
|
|
|
|
2019-08-05 08:27:15 -04:00
|
|
|
tag::local[]
|
|
|
|
`local`::
|
|
|
|
(Optional, boolean) If `true`, the request retrieves information from the local
|
|
|
|
node only. Defaults to `false`, which means information is retrieved from
|
|
|
|
the master node.
|
|
|
|
end::local[]
|
|
|
|
|
2019-09-04 11:47:32 -04:00
|
|
|
tag::mappings[]
|
|
|
|
`mappings`::
|
|
|
|
+
|
|
|
|
--
|
|
|
|
(Optional, <<mapping,mapping object>>) Mapping for fields in the index. If
|
|
|
|
specified, this mapping can include:
|
|
|
|
|
|
|
|
* Field names
|
|
|
|
* <<mapping-types,Field datatypes>>
|
|
|
|
* <<mapping-params,Mapping parameters>>
|
|
|
|
|
|
|
|
See <<mapping>>.
|
|
|
|
--
|
|
|
|
end::mappings[]
|
|
|
|
|
2019-08-29 12:56:10 -04:00
|
|
|
tag::max_docs[]
|
|
|
|
`max_docs`::
|
|
|
|
(Optional, integer) Maximum number of documents to process. Defaults to all
|
|
|
|
documents.
|
|
|
|
end::max_docs[]
|
|
|
|
|
2019-08-05 08:27:15 -04:00
|
|
|
tag::name[]
|
2019-08-23 10:57:20 -04:00
|
|
|
`<name>`::
|
2019-08-05 08:27:15 -04:00
|
|
|
(Optional, string) Comma-separated list of alias names to return.
|
|
|
|
end::name[]
|
|
|
|
|
2019-08-05 11:17:37 -04:00
|
|
|
tag::node-id[]
|
2019-08-23 10:57:20 -04:00
|
|
|
`<node_id>`::
|
2019-08-05 11:17:37 -04:00
|
|
|
(Optional, string) Comma-separated list of node IDs or names used to limit
|
|
|
|
returned information.
|
|
|
|
end::node-id[]
|
|
|
|
|
2019-08-29 12:56:10 -04:00
|
|
|
tag::pipeline[]
|
2019-08-12 17:50:15 -04:00
|
|
|
`pipeline`::
|
|
|
|
(Optional, string) ID of the pipeline to use to preprocess incoming documents.
|
2019-08-29 12:56:10 -04:00
|
|
|
end::pipeline[]
|
|
|
|
|
|
|
|
tag::preference[]
|
|
|
|
`preference`::
|
|
|
|
(Optional, string) Specifies the node or shard the operation should be
|
|
|
|
performed on. Random by default.
|
|
|
|
end::preference[]
|
|
|
|
|
|
|
|
tag::search-q[]
|
|
|
|
`q`::
|
|
|
|
(Optional, string) Query in the Lucene query string syntax.
|
|
|
|
end::search-q[]
|
2019-08-12 17:50:15 -04:00
|
|
|
|
2019-08-29 12:56:10 -04:00
|
|
|
tag::refresh[]
|
2019-08-12 17:50:15 -04:00
|
|
|
`refresh`::
|
|
|
|
(Optional, enum) If `true`, {es} refreshes the affected shards to make this
|
|
|
|
operation visible to search, if `wait_for` then wait for a refresh to make
|
|
|
|
this operation visible to search, if `false` do nothing with refreshes.
|
|
|
|
Valid values: `true`, `false`, `wait_for`. Default: `false`.
|
2019-08-29 12:56:10 -04:00
|
|
|
end::refresh[]
|
2019-08-12 17:50:15 -04:00
|
|
|
|
2019-08-29 12:56:10 -04:00
|
|
|
tag::request_cache[]
|
|
|
|
`request_cache`::
|
|
|
|
(Optional, boolean) Specifies if the request cache should be used for this
|
|
|
|
request. Defaults to the index-level setting.
|
|
|
|
end::request_cache[]
|
2019-08-12 17:50:15 -04:00
|
|
|
|
2019-08-29 12:56:10 -04:00
|
|
|
tag::requests_per_second[]
|
|
|
|
`requests_per_second`::
|
|
|
|
(Optional, integer) The throttle for this request in sub-requests per second.
|
|
|
|
-1 means no throttle. Defaults to 0.
|
|
|
|
end::requests_per_second[]
|
2019-08-12 17:50:15 -04:00
|
|
|
|
2019-08-29 12:56:10 -04:00
|
|
|
tag::routing[]
|
2019-08-12 17:50:15 -04:00
|
|
|
`routing`::
|
|
|
|
(Optional, string) Target the specified primary shard.
|
2019-08-29 12:56:10 -04:00
|
|
|
end::routing[]
|
2019-08-12 17:50:15 -04:00
|
|
|
|
2019-08-29 10:38:48 -04:00
|
|
|
tag::index-routing[]
|
|
|
|
`routing`::
|
|
|
|
(Optional, string)
|
|
|
|
Custom <<mapping-routing-field, routing value>>
|
|
|
|
used to route operations to a specific shard.
|
|
|
|
end::index-routing[]
|
|
|
|
|
2019-08-29 12:56:10 -04:00
|
|
|
tag::cat-s[]
|
|
|
|
`s`::
|
|
|
|
(Optional, string) Comma-separated list of column names or column aliases used
|
|
|
|
to sort the response.
|
|
|
|
end::cat-s[]
|
|
|
|
|
|
|
|
tag::scroll[]
|
|
|
|
`scroll`::
|
|
|
|
(Optional, <<time-units, time units>>) Specifies how long a consistent view of
|
|
|
|
the index should be maintained for scrolled search.
|
|
|
|
end::scroll[]
|
|
|
|
|
|
|
|
tag::scroll_size[]
|
|
|
|
`scroll_size`::
|
|
|
|
(Optional, integer) Size of the scroll request that powers the operation.
|
|
|
|
Defaults to 100.
|
|
|
|
end::scroll_size[]
|
|
|
|
|
|
|
|
tag::search_timeout[]
|
|
|
|
`search_timeout`::
|
|
|
|
(Optional, <<time-units, time units>> Explicit timeout for each search
|
|
|
|
request. Defaults to no timeout.
|
|
|
|
end::search_timeout[]
|
|
|
|
|
|
|
|
tag::search_type[]
|
|
|
|
`search_type`::
|
|
|
|
(Optional, string) The type of the search operation. Available options:
|
|
|
|
* `query_then_fetch`
|
|
|
|
* `dfs_query_then_fetch`
|
|
|
|
end::search_type[]
|
|
|
|
|
2019-09-04 11:47:32 -04:00
|
|
|
tag::settings[]
|
|
|
|
`settings`::
|
|
|
|
(Optional, <<index-modules-settings,index setting object>>) Configuration
|
|
|
|
options for the index. See <<index-modules-settings>>.
|
|
|
|
end::settings[]
|
|
|
|
|
2019-08-29 12:56:10 -04:00
|
|
|
tag::slices[]
|
|
|
|
`slices`::
|
|
|
|
(Optional, integer) The number of slices this task should be divided into.
|
|
|
|
Defaults to 1 meaning the task isn't sliced into subtasks.
|
|
|
|
end::slices[]
|
|
|
|
|
|
|
|
tag::sort[]
|
|
|
|
`sort`::
|
|
|
|
(Optional, string) A comma-separated list of <field>:<direction> pairs.
|
|
|
|
end::sort[]
|
|
|
|
|
|
|
|
tag::source[]
|
|
|
|
`_source`::
|
|
|
|
(Optional, string) True or false to return the `_source` field or not, or a
|
|
|
|
list of fields to return.
|
|
|
|
end::source[]
|
|
|
|
|
|
|
|
tag::source_excludes[]
|
|
|
|
`_source_excludes`::
|
|
|
|
(Optional, string) A list of fields to exclude from the returned `_source`
|
|
|
|
field.
|
|
|
|
end::source_excludes[]
|
|
|
|
|
|
|
|
tag::source_includes[]
|
|
|
|
`_source_includes`::
|
|
|
|
(Optional, string) A list of fields to extract and return from the `_source`
|
|
|
|
field.
|
|
|
|
end::source_includes[]
|
|
|
|
|
|
|
|
tag::stats[]
|
|
|
|
`stats`::
|
|
|
|
(Optional, string) Specific `tag` of the request for logging and statistical
|
|
|
|
purposes.
|
|
|
|
end::stats[]
|
|
|
|
|
|
|
|
tag::terminate_after[]
|
|
|
|
`terminate_after`::
|
|
|
|
(Optional, integer) The maximum number of documents to collect for each shard,
|
|
|
|
upon reaching which the query execution will terminate early.
|
|
|
|
end::terminate_after[]
|
|
|
|
|
|
|
|
tag::timeoutparms[]
|
|
|
|
|
|
|
|
tag::timeout[]
|
|
|
|
`timeout`::
|
|
|
|
(Optional, <<time-units, time units>>) Specifies the period of time to wait for
|
|
|
|
a response. If no response is received before the timeout expires, the request
|
|
|
|
fails and returns an error. Defaults to `30s`.
|
|
|
|
end::timeout[]
|
|
|
|
|
|
|
|
tag::master-timeout[]
|
|
|
|
`master_timeout`::
|
|
|
|
(Optional, <<time-units, time units>>) Specifies the period of time 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. Defaults to `30s`.
|
|
|
|
end::master-timeout[]
|
|
|
|
|
|
|
|
end::timeoutparms[]
|
|
|
|
|
|
|
|
tag::cat-v[]
|
|
|
|
`v`::
|
|
|
|
(Optional, boolean) If `true`, the response includes column headings. Defaults
|
|
|
|
to `false`.
|
|
|
|
end::cat-v[]
|
|
|
|
|
|
|
|
tag::version[]
|
|
|
|
`version`::
|
|
|
|
(Optional, boolean) If `true`, returns the document version as part of a hit.
|
|
|
|
end::version[]
|
|
|
|
|
2019-08-12 17:50:15 -04:00
|
|
|
tag::doc-version[]
|
|
|
|
`version`::
|
|
|
|
(Optional, integer) Explicit version number for concurrency control.
|
|
|
|
The specified version must match the current version of the document for the
|
|
|
|
request to succeed.
|
|
|
|
end::doc-version[]
|
|
|
|
|
2019-08-29 12:56:10 -04:00
|
|
|
tag::version_type[]
|
2019-08-12 17:50:15 -04:00
|
|
|
`version_type`::
|
|
|
|
(Optional, enum) Specific version type: `internal`, `external`,
|
|
|
|
`external_gte`, `force`.
|
2019-08-29 12:56:10 -04:00
|
|
|
end::version_type[]
|
2019-08-12 17:50:15 -04:00
|
|
|
|
2019-08-29 12:56:10 -04:00
|
|
|
tag::wait_for_active_shards[]
|
2019-08-12 17:50:15 -04:00
|
|
|
`wait_for_active_shards`::
|
2019-08-26 08:31:31 -04:00
|
|
|
+
|
|
|
|
--
|
2019-08-12 17:50:15 -04:00
|
|
|
(Optional, string) The number of shard copies that must be active before
|
|
|
|
proceeding with the operation. Set to `all` or any positive integer up
|
|
|
|
to the total number of shards in the index (`number_of_replicas+1`).
|
|
|
|
Default: 1, the primary shard.
|
2019-08-26 08:31:31 -04:00
|
|
|
|
|
|
|
See <<index-wait-for-active-shards>>.
|
|
|
|
--
|
2019-08-29 12:56:10 -04:00
|
|
|
end::wait_for_active_shards[]
|
2019-08-05 08:27:15 -04:00
|
|
|
|
2019-08-29 12:56:10 -04:00
|
|
|
tag::wait_for_completion[]
|
|
|
|
`wait_for_completion`::
|
|
|
|
(Optional, boolean) Should the request block until the operation is
|
|
|
|
complete. Defaults to `true`.
|
|
|
|
end::wait_for_completion[]
|