checkQueryParameters(tdocs, offset, groupCount);
AResultsGrouper grouper;
if (null == groupBy ) {
grouper = (new NoGroup()).getGrouper(new TopDocsDocumentProvider(tdocs,searcher));
} else {
grouper = groupBy.getGrouper(new TopDocsDocumentProvider(tdocs,searcher));
}
return grouper.group(groupCount,groupSize,offset);
}