mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
[DOCS] Note that default_field
support wildcards (#81127)
Changes: * Notes that the query string query's `default_field` and `fields` parameters support wildcards. * Adds an xref to the `index.query.default_field` docs to the `default_field` parameter.
This commit is contained in:
parent
e9af7c608f
commit
f5f76ff1ca
2 changed files with 10 additions and 11 deletions
|
@ -272,7 +272,7 @@ are ignored for this index.
|
||||||
The maximum length of regex that can be used in Regexp Query.
|
The maximum length of regex that can be used in Regexp Query.
|
||||||
Defaults to `1000`.
|
Defaults to `1000`.
|
||||||
|
|
||||||
|
[[index-query-default-field]]
|
||||||
`index.query.default_field`::
|
`index.query.default_field`::
|
||||||
+
|
+
|
||||||
--
|
--
|
||||||
|
|
|
@ -63,13 +63,14 @@ GET /_search
|
||||||
`default_field`::
|
`default_field`::
|
||||||
+
|
+
|
||||||
--
|
--
|
||||||
(Optional, string) Default field you wish to search if no field is provided in
|
(Optional, string) Default field to search if no field is provided in the query
|
||||||
the query string.
|
string. Supports wildcards (`*`).
|
||||||
|
|
||||||
Defaults to the `index.query.default_field` index setting, which has a default
|
|
||||||
value of `*`. The `*` value extracts all fields that are eligible for term
|
Defaults to the <<index-query-default-field,`index.query.default_field`>> index
|
||||||
queries and filters the metadata fields. All extracted fields are then
|
setting, which has a default value of `*`. The `*` value extracts all fields
|
||||||
combined to build a query if no `prefix` is specified.
|
that are eligible for term queries and filters the metadata fields. All
|
||||||
|
extracted fields are then combined to build a query if no `prefix` is specified.
|
||||||
|
|
||||||
Searching across all eligible fields does not include <<nested,nested
|
Searching across all eligible fields does not include <<nested,nested
|
||||||
documents>>. Use a <<query-dsl-nested-query,`nested` query>> to search those
|
documents>>. Use a <<query-dsl-nested-query,`nested` query>> to search those
|
||||||
|
@ -136,13 +137,11 @@ AND of AND Hungary`.
|
||||||
from a `query_string` search. Defaults to `true`.
|
from a `query_string` search. Defaults to `true`.
|
||||||
|
|
||||||
`fields`::
|
`fields`::
|
||||||
|
(Optional, array of strings) Array of fields to search. Supports wildcards
|
||||||
|
(`*`).
|
||||||
+
|
+
|
||||||
--
|
|
||||||
(Optional, array of strings) Array of fields you wish to search.
|
|
||||||
|
|
||||||
You can use this parameter query to search across multiple fields. See
|
You can use this parameter query to search across multiple fields. See
|
||||||
<<query-string-multi-field>>.
|
<<query-string-multi-field>>.
|
||||||
--
|
|
||||||
|
|
||||||
`fuzziness`::
|
`fuzziness`::
|
||||||
(Optional, string) Maximum edit distance allowed for fuzzy matching. For fuzzy
|
(Optional, string) Maximum edit distance allowed for fuzzy matching. For fuzzy
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue