mirror of https://github.com/apache/lucene.git
LUCENE-10481: FacetsCollector will not request scores if it does not use them (#760)
This commit is contained in:
parent
779c332a8c
commit
1c6f631678
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue