Github user jimczi commented on a diff in the pull request:
https://github.com/apache/lucene-solr/pull/495#discussion_r233796946
--- Diff: lucene/core/src/java/org/apache/lucene/search/LRUQueryCache.java
---
@@ -766,7 +766,7 @@ public ScorerSupplier scorerSupplier(LeafReaderContext
context) throws IOExcepti
return new ScorerSupplier() {
@Override
public Scorer get(long LeadCost) throws IOException {
- return new ConstantScoreScorer(CachingWrapperWeight.this, 0f,
disi);
+ return new ConstantScoreScorer(CachingWrapperWeight.this, 0f,
ScoreMode.TOP_SCORES, disi);
--- End diff --
This is the cached version so the score is never needed in this case.
`ScoreMode.COMPLETE_NO_SCORES` should be used.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]