mirror of https://github.com/apache/lucene.git
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:
parent
cb1bc14e2a
commit
57eee59376
|
@ -142,9 +142,9 @@ public class Grouping {
|
||||||
maxGroupToFind = getMax(offset, numGroups, maxDoc);
|
maxGroupToFind = getMax(offset, numGroups, maxDoc);
|
||||||
|
|
||||||
if (compareSorts(sort, groupSort)) {
|
if (compareSorts(sort, groupSort)) {
|
||||||
collector = new TopGroupSortCollector(groupBy, context, normalizeSort(sort), normalizeSort(groupSort), maxGroupToFind);
|
|
||||||
} else {
|
|
||||||
collector = new TopGroupCollector(groupBy, context, normalizeSort(sort), maxGroupToFind);
|
collector = new TopGroupCollector(groupBy, context, normalizeSort(sort), maxGroupToFind);
|
||||||
|
} else {
|
||||||
|
collector = new TopGroupSortCollector(groupBy, context, normalizeSort(sort), normalizeSort(groupSort), maxGroupToFind);
|
||||||
}
|
}
|
||||||
return collector;
|
return collector;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue