-
Notifications
You must be signed in to change notification settings - Fork 688
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MB-64636 - Modified Weight for KNN Scorer (#2127)
1. Changed weight of a kNN query to 1 to allow the boost value to kick in when computing query score. Since the weight of only the kNN scorer is changed, this will not impact how boosting is calculated for other types of queries. To reduce the kNN score relative to the FTS query score, set boost to <1. 2. Added a unit test which demonstrates boost increasing scores even for pure kNN queries(kNN + match none query).
- Loading branch information
1 parent
bf28642
commit bd57cb6
Showing
2 changed files
with
92 additions
and
1 deletion.
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