-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Limit the number of expanded fields it query_string and simple_query_string #26541
Conversation
…string This limits the number of automatically expanded fields for the "all fields" mode (`"default_field": "*"`) for the `query_string` and `simple_query_string` queries to 1024 fields. Resolves elastic#25105
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Can you add a small warning in the query_string
and simple_query_string
docs regarding this limit ?
@dakrone is there a limit for |
…s that can be queried at once in the multi_match query.
* master: Refactor internal engine [Docs] #26541: add warning regarding the limit on the number of fields that can be queried at once in the multi_match query. [Docs] Fix note in bucket_selector [Docs] Fix indentation of examples (#27168) [Docs] Clarify `span_not` query behavior for non-overlapping matches (#27150) [Docs] Remove first person "I" from getting started (#27155)
@jimczi so metricbeat creates more than 1024 fields, which is causing ES to return errors when Kibana sends search requests that expand to all fields. Initially we thought setting the Any ideas how we can handle this gracefully for multi_match? |
Can you grab the existing value of |
@dakrone They would need to figure out which index to grab it from based on the pattern. |
And the |
Starting with Elasticsearch 7.0, we limit the number of automatically expanded fields for the "all fields" mode ("default_field": "*") for the query_string and simple_query_string queries to 1024 fields (see elastic#26541). This change adds a deprecation warning to the QueryParserHelper where in the next major version we will throw an error to warn users of the upcoming change. Relates to elastic#26541
Adds a note to warn users about the limit introduced in elastic#26541.
Starting with Elasticsearch 7.0, we limit the number of automatically expanded fields for the "all fields" mode ("default_field": "*") for the query_string and simple_query_string queries to 1024 fields (see #26541). This change adds a deprecation warning to the QueryParserHelper where in the next major version we will throw an error to warn users of the upcoming change. Relates to #26541
Adds a note to warn users about the limit introduced in #26541.
Adds a note to warn users about the limit introduced in #26541.
Currently we introduced a hard limit of 1024 to the number of fields a query can be expanded to in elastic#26541. Instead of using a hard limit, we should make this configurable. This change removes the hard limit check and uses the existing `max_clause_count` setting instead. Closes elastic#34778
This limits the number of automatically expanded fields for the "all fields"
mode (
"default_field": "*"
) for thequery_string
andsimple_query_string
queries to 1024 fields.
Resolves #25105