[DOCS] Adds search-related query parameters to the common parameters. (#46057)

@szabosteve Merging so I can make some additions. Will incorporate the comments from @jrodewig.
This commit is contained in:
István Zoltán Szabó 2019-08-29 01:44:22 +02:00
parent fbe9e8a530
commit 95a50ae809
1 changed files with 86 additions and 0 deletions

View File

@ -7,11 +7,34 @@ parameter also applies to <<indices-aliases,index aliases>> that point to a
missing or closed index. missing or closed index.
end::allow-no-indices[] end::allow-no-indices[]
tag::analyzer[]
analyzer`::
(Optional, string) Defines the analyzer to use for the query string.
end::analyzer[]
tag::analyze_wildcard[]
`analyze_wildcard`::
(Optional, boolean) If `true`, wildcard and prefix queries will also be
analyzed. Defaults to `false`.
end::analyze_wildcard[]
tag::bytes[] tag::bytes[]
`bytes`:: `bytes`::
(Optional, <<byte-units,byte size units>>) Unit used to display byte values. (Optional, <<byte-units,byte size units>>) Unit used to display byte values.
end::bytes[] end::bytes[]
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) Defines the field to use as default where no field prefix is
given in the query string.
end::df[]
tag::expand-wildcards[] tag::expand-wildcards[]
`expand_wildcards`:: `expand_wildcards`::
+ +
@ -44,6 +67,11 @@ tag::flat-settings[]
`false`. `false`.
end::flat-settings[] end::flat-settings[]
tag::from[]
`from`::
(Optional, integer) Defines the starting offset. Defaults to `0`.
end::from[]
tag::help[] tag::help[]
`help`:: `help`::
(Optional, boolean) If `true`, the response returns help information. Defaults (Optional, boolean) If `true`, the response returns help information. Defaults
@ -88,6 +116,12 @@ tag::index[]
used to limit the request. used to limit the request.
end::index[] end::index[]
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[]
tag::local[] tag::local[]
`local`:: `local`::
(Optional, boolean) If `true`, the request retrieves information from the local (Optional, boolean) If `true`, the request retrieves information from the local
@ -106,18 +140,70 @@ tag::node-id[]
returned information. returned information.
end::node-id[] end::node-id[]
tag::search-q[]
`q`::
(Optional, string) Query in the Lucene query string syntax.
end::search-q[]
tag::cat-s[] tag::cat-s[]
`s`:: `s`::
(Optional, string) Comma-separated list of column names or column aliases used (Optional, string) Comma-separated list of column names or column aliases used
to sort the response. to sort the response.
end::cat-s[] end::cat-s[]
tag::search_type[]
`search_type`::
(Optional, string) Defines the type of the search operation. Available options:
* `query_then_fetch`
* `dfs_query_then_fetch`
end::search_type[]
tag::search_timeout[]
`search_timeout`::
(Optional, <<time-units, time units>> Explicit timeout for each search
request. Defaults to no timeout.
end::search_timeout[]
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::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::cat-v[] tag::cat-v[]
`v`:: `v`::
(Optional, boolean) If `true`, the response includes column headings. Defaults (Optional, boolean) If `true`, the response includes column headings. Defaults
to `false`. to `false`.
end::cat-v[] end::cat-v[]
tag::version[]
`version`::
(Optional, boolean) If `true`, returns the document version as part of a hit.
end::version[]
tag::doc-pipeline[] tag::doc-pipeline[]
`pipeline`:: `pipeline`::
(Optional, string) ID of the pipeline to use to preprocess incoming documents. (Optional, string) ID of the pipeline to use to preprocess incoming documents.