SOLR-236: fix typo - instantiated wrong collector

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1030246 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2010-11-02 21:45:35 +00:00
parent cb1bc14e2a
commit 57eee59376
1 changed files with 2 additions and 2 deletions

View File

@ -142,9 +142,9 @@ public class Grouping {
maxGroupToFind = getMax(offset, numGroups, maxDoc);
if (compareSorts(sort, groupSort)) {
collector = new TopGroupSortCollector(groupBy, context, normalizeSort(sort), normalizeSort(groupSort), maxGroupToFind);
} else {
collector = new TopGroupCollector(groupBy, context, normalizeSort(sort), maxGroupToFind);
} else {
collector = new TopGroupSortCollector(groupBy, context, normalizeSort(sort), normalizeSort(groupSort), maxGroupToFind);
}
return collector;
}