mirror of https://github.com/apache/lucene.git
LUCENE-8412: Fix TestDistributedGrouping failure.
This commit is contained in:
parent
8892c0d9af
commit
d010cdd87e
|
@ -173,8 +173,10 @@ public class TopGroupsFieldCommand implements Command<TopGroups<BytesRef>> {
|
|||
} else {
|
||||
topGroups = secondPassCollector.getTopGroups(0);
|
||||
}
|
||||
for (GroupDocs<?> group : topGroups.groups) {
|
||||
TopFieldCollector.populateScores(group.scoreDocs, searcher, query);
|
||||
if (needScores) {
|
||||
for (GroupDocs<?> group : topGroups.groups) {
|
||||
TopFieldCollector.populateScores(group.scoreDocs, searcher, query);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue