LUCENE-10481: FacetsCollector will not request scores if it does not use them (#760)

This commit is contained in:
Mike Drob 2022-03-23 09:44:02 -05:00 committed by Mike Drob
parent ffb3168d6b
commit 691760be93
2 changed files with 3 additions and 1 deletions

View File

@ -28,6 +28,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

View File

@ -129,7 +129,7 @@ public class FacetsCollector extends SimpleCollector {
@Override
public ScoreMode scoreMode() {
return ScoreMode.COMPLETE;
return keepScores ? ScoreMode.COMPLETE : ScoreMode.COMPLETE_NO_SCORES;
}
@Override