mirror of
https://github.com/apache/lucene.git
synced 2025-02-10 12:05:36 +00:00
LUCENE-10481: FacetsCollector will not request scores if it does not use them (#760)
This commit is contained in:
parent
ffb3168d6b
commit
691760be93
@ -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
|
||||
|
@ -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…
x
Reference in New Issue
Block a user