-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix alias resolution in boolean match query (#76688)
When backporting #68795, we introduced a regression around `match` queries on field aliases. If the `match` query parses to a `synonym` query (because its analyzer can produce multiple tokens at a single position), then we don't resolve the field alias to its concrete field. This means the query will not have any results. We already had a test for this case but it was too narrow. Note this regression only affects 7.x, there is no bug on master.
- Loading branch information
1 parent
477b6a8
commit d0bfad8
Showing
2 changed files
with
13 additions
and
10 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