LUCENE-6185: No need to implicitely set doDocScores anymore when searching with threads.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1652414 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrien Grand 2015-01-16 14:24:09 +00:00
parent e32c7b7db9
commit ab669e2d10
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}