Skip to content

Commit

Permalink
LUCENE-10481: FacetsCollector will not request scores if it does not …
Browse files Browse the repository at this point in the history
…use them (#760)
  • Loading branch information
madrob authored Mar 23, 2022
1 parent 779c332 commit 1c6f631
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lucene/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ Optimizations
* LUCENE-10418: More `Query#rewrite` optimizations for the non-scoring case.
(Adrien Grand)

* LUCENE-10481: FacetsCollector will not request scores if it does not use them. (Mike Drob)

Bug Fixes
---------------------
* LUCENE-10477: Highlighter: WeightedSpanTermExtractor.extractWeightedSpanTerms to Query#rewrite
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public final void collect(int doc) throws IOException {

@Override
public ScoreMode scoreMode() {
return ScoreMode.COMPLETE;
return keepScores ? ScoreMode.COMPLETE : ScoreMode.COMPLETE_NO_SCORES;
}

@Override
Expand Down

0 comments on commit 1c6f631

Please sign in to comment.