-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix problem with MatchNoDocsQuery in disjunction queries
Queries across multiple fields can generate MatchNoDocsQuerys if some of the fields are unmapped. In certain situation this can lead to erroneous behaviour, for example when an umapped field is used in a `query_string` query across several fields where some are unmapped. If some tokens get eliminated by the analyzer of the mapped fields, the remaining unmapped fields will currently generate disjunction queries containing only MatchNoDocsQuerys, which in turn leads to no matches in the overall query. Instead we should simply drop MatchNoDocsQuerys from disjunctions entirely. Closes #34708
- Loading branch information
Christoph Büscher
committed
Nov 20, 2018
1 parent
7a779a9
commit d9bc616
Showing
6 changed files
with
38 additions
and
17 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
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