diff --git a/docs/reference/index-modules.asciidoc b/docs/reference/index-modules.asciidoc index 50be1e0e3431..07a90392f684 100644 --- a/docs/reference/index-modules.asciidoc +++ b/docs/reference/index-modules.asciidoc @@ -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`:: + -- diff --git a/docs/reference/query-dsl/query-string-query.asciidoc b/docs/reference/query-dsl/query-string-query.asciidoc index 1943c0027454..319ede7c4ac0 100644 --- a/docs/reference/query-dsl/query-string-query.asciidoc +++ b/docs/reference/query-dsl/query-string-query.asciidoc @@ -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 +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 <>. Use a <> 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 <>. --- `fuzziness`:: (Optional, string) Maximum edit distance allowed for fuzzy matching. For fuzzy