Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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).