mirror of https://github.com/apache/lucene.git
SOLR-236: grouping - remove redundant setBottom
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035117 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fffce11f1a
commit
7b33f0d80c
|
@ -715,10 +715,9 @@ class TopGroupSortCollector extends TopGroupCollector {
|
||||||
groupMap.put(smallest.groupValue, smallest);
|
groupMap.put(smallest.groupValue, smallest);
|
||||||
orderedGroups.add(smallest);
|
orderedGroups.add(smallest);
|
||||||
|
|
||||||
|
int lastSlot = orderedGroups.last().comparatorSlot;
|
||||||
for (FieldComparator fc : comparators)
|
for (FieldComparator fc : comparators)
|
||||||
fc.setBottom(orderedGroups.last().comparatorSlot);
|
fc.setBottom(lastSlot);
|
||||||
for (FieldComparator fc : smallest.sortGroupComparators)
|
|
||||||
fc.setBottom(0);
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue