forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consistent scores for multi-term SourceConfirmedTestQuery (elastic#10…
…0846) SourceConfirmedTestQuery uses a QueryVisitor to collect terms from its inner query to build its internal SimScorer. It is important to hold these terms in a consistent order so that when scores for each term are summed, the order of summation is the same as it would be for the inner query. This commit changes the call to visit to use a LinkedHashSet to ensure that terms are iterated in the order in which they are collected. Fixes elastic#98712
- Loading branch information
1 parent
4a9e6e2
commit e5674e4
Showing
3 changed files
with
10 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pr: 100846 | ||
summary: Consistent scores for multi-term `SourceConfirmedTestQuery` | ||
area: Search | ||
type: bug | ||
issues: | ||
- 98712 |
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