tdocs= searcher.search(query,filter, offset + groupSize * groupCount * slackFactor, sort);
}
statistics.notifyEventValue("lucene work time", System.currentTimeMillis() - startTime);
// Exceptions are thrown to upper layer, but if we got here, assume everything is ok.
Query rewrittenQuery = searcher.rewrite(query);
GroupedSearchResults results = pageResults(tdocs, searcher, offset, groupCount, groupBy, groupSize);
if (null == results) {
throw new RuntimeException("GroupedSearchResults is NULL");
}
return(new Pair<GroupedSearchResults, Query>(results, rewrittenQuery));