From 6d8af9731d96cc092a5cbb72b0cec366a451997b Mon Sep 17 00:00:00 2001 From: Peter Dyson Date: Mon, 19 Nov 2018 22:21:59 +1000 Subject: [PATCH] [Docs] Warn about searching across all fields wt. `query_string` (#35570) Warn about potential performance impact when a large number of fields is used with query string query and no default field. --- docs/reference/query-dsl/query-string-query.asciidoc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/reference/query-dsl/query-string-query.asciidoc b/docs/reference/query-dsl/query-string-query.asciidoc index f80cd2e8e93..0e686fb85e4 100644 --- a/docs/reference/query-dsl/query-string-query.asciidoc +++ b/docs/reference/query-dsl/query-string-query.asciidoc @@ -144,8 +144,11 @@ When not explicitly specifying the field to search on in the query string syntax, the `index.query.default_field` will be used to derive which field to search on. If the `index.query.default_field` is not specified, the `query_string` will automatically attempt to determine the existing fields in the index's -mapping that are queryable, and perform the search on those fields. Note that this will not -include nested documents, use a nested query to search those documents. +mapping that are queryable, and perform the search on those fields. +This will not include nested documents, use a nested query to search those documents. + +NOTE: For mappings with a large number of fields, searching across all queryable +fields in the mapping could be expensive. [float] ==== Multi Field