From b9fbfa0daf8fa471d81b67f79ac984e994588601 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20B=C3=BCscher?= Date: Fri, 26 Oct 2018 18:19:10 +0200 Subject: [PATCH 1/2] [Docs] Add nmigration note about expanded fields limit Adds a note to warn users about the limit introduced in #26541. --- docs/reference/migration/migrate_7_0/search.asciidoc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/reference/migration/migrate_7_0/search.asciidoc b/docs/reference/migration/migrate_7_0/search.asciidoc index afb2251fb1bcd..726cbd6269c1a 100644 --- a/docs/reference/migration/migrate_7_0/search.asciidoc +++ b/docs/reference/migration/migrate_7_0/search.asciidoc @@ -106,6 +106,14 @@ To safeguard against this, the maximum length of regex that can be used in a Regexp Query request has been limited to 1000. This default maximum can be changed for a particular index with the index setting `index.max_regex_length`. +[float] +==== Limiting the number of auto-expanded fields + +Executing queries that use automatic expansion of fields (e.g. `query_string`, `simple_query_string` +or `multi_match`) can have performance issues for indices with a large numbers of fields. +To safeguard against this, a fixed limit of a maximum of 1024 fields has been introduced +for queries using the "all fields" mode ("default_field": "*"). + [float] ==== Invalid `_search` request body From ca499b1ca3ee58dffd1d843d8f8a6728a0eb0127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20B=C3=BCscher?= Date: Fri, 26 Oct 2018 18:44:05 +0200 Subject: [PATCH 2/2] iter --- docs/reference/migration/migrate_7_0/search.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/migration/migrate_7_0/search.asciidoc b/docs/reference/migration/migrate_7_0/search.asciidoc index 726cbd6269c1a..efd2d2c271a8d 100644 --- a/docs/reference/migration/migrate_7_0/search.asciidoc +++ b/docs/reference/migration/migrate_7_0/search.asciidoc @@ -111,8 +111,8 @@ for a particular index with the index setting `index.max_regex_length`. Executing queries that use automatic expansion of fields (e.g. `query_string`, `simple_query_string` or `multi_match`) can have performance issues for indices with a large numbers of fields. -To safeguard against this, a fixed limit of a maximum of 1024 fields has been introduced -for queries using the "all fields" mode ("default_field": "*"). +To safeguard against this, a hard limit of 1024 fields has been introduced for queries +using the "all fields" mode ("default_field": "*") or other fieldname expansions (e.g. "foo*"). [float] ==== Invalid `_search` request body