diff --git a/lucene/core/src/java/org/apache/lucene/search/IndexSearcher.java b/lucene/core/src/java/org/apache/lucene/search/IndexSearcher.java index 1633203dd95..84df73854c3 100644 --- a/lucene/core/src/java/org/apache/lucene/search/IndexSearcher.java +++ b/lucene/core/src/java/org/apache/lucene/search/IndexSearcher.java @@ -729,7 +729,7 @@ public class IndexSearcher { public TopFieldDocs call() throws IOException { assert slice.leaves.length == 1; return searcher.search(Arrays.asList(slice.leaves), - weight, after, nDocs, sort, true, doDocScores || sort.needsScores(), doMaxScore); + weight, after, nDocs, sort, true, doDocScores, doMaxScore); } }