forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't expand default_field in query_string before required
Currently QueryStringQueryParser already checks if the field limit is breached at construction time, which e.g. leads to errors if the default field is set to "*" or the default is used and there are more fields than the limit, even if the query itself does not use all these fields. This change moves this check to happen after query parsing. QueryStringQueryParser now keeps track of the fields that are actually resolved while parsing. The size of that set is later used to check against the limit set by the `indices.query.bool.max_clause_count` setting. Closes elastic#53789
- Loading branch information
Christoph Büscher
committed
Apr 14, 2020
1 parent
7375d85
commit 7710744
Showing
4 changed files
with
111 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters