-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
While investigating the behavior of several queries using the query boost capability a few issues were found. First, an optimization in the boolean query, would replace the boolean searcher with internal "should" searcher, in the case where it was the only one (no "must" or "must not"). This optimization is valid, but as implemented today, it looses track of the users boost. As this seems to be a minor optimization, it is temporarily disabled to allow for correct boosting behavior. Second, the boolean searcher, which by default will use a composite scorer (sum constituent scores), was ignoring the user requested boost value. A new boosting variant of the composite scorer is introduced. This variant first sums the scores, then multiplies by the boost. Third, the numeric range searcher was defaulting to a constant score of 1.0, and it too ignored the requested boost value. The code has been updated to return a constant score equal to the boost (1.0 * boost).
- Loading branch information
Showing
3 changed files
with
143 additions
and
12 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