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 GitHub
parent 779c332a8c
commit 1c6f631678
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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

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