Apache Lucene open-source search software
LUCENE-10481: FacetsCollector will not request scores if it does not use them (#760)
Mike Drob1c6f63167895
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txtindex 8d79a15d1e6..db1eba13849 100644--- a/lucene/CHANGES.txt+++ b/lucene/CHANGES.txt@@ -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#rewritediff --git a/lucene/facet/src/java/org/apache/lucene/facet/FacetsCollector.java b/lucene/facet/src/java/org/apache/lucene/facet/FacetsCollector.javaindex 93ef7e87fc2..78bf4b12623 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/FacetsCollector.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/FacetsCollector.java@@ -129,7 +129,7 @@ public class FacetsCollector extends SimpleCollector {@Overridepublic ScoreMode scoreMode() {- return ScoreMode.COMPLETE;+ return keepScores ? ScoreMode.COMPLETE : ScoreMode.COMPLETE_NO_SCORES;}@Override