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:
Yonik Seeley 2010-11-15 01:30:54 +00:00
parent fffce11f1a
commit 7b33f0d80c
1 changed files with 2 additions and 3 deletions

View File

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