mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 09:28:55 -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.
|
||||
Defaults to `1000`.
|
||||
|
||||
|
||||
[[index-query-default-field]]
|
||||
`index.query.default_field`::
|
||||
+
|
||||
--
|
||||
|
|
|
@ -63,13 +63,14 @@ GET /_search
|
|||
`default_field`::
|
||||
+
|
||||
--
|
||||
(Optional, string) Default field you wish to search if no field is provided in
|
||||
the query string.
|
||||
(Optional, string) Default field to search if no field is provided in the query
|
||||
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
|
||||
queries and filters the metadata fields. All extracted fields are then
|
||||
combined to build a query if no `prefix` is specified.
|
||||
|
||||
Defaults to the <<index-query-default-field,`index.query.default_field`>> index
|
||||
setting, which has a default value of `*`. The `*` value extracts all fields
|
||||
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
|
||||
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`.
|
||||
|
||||
`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
|
||||
<<query-string-multi-field>>.
|
||||
--
|
||||
|
||||
`fuzziness`::
|
||||
(Optional, string) Maximum edit distance allowed for fuzzy matching. For fuzzy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue