LUCENE-6766: don't throw exc from MultiXXX if there is an index sort

This commit is contained in:
Mike McCandless 2016-05-07 11:45:59 -04:00
parent 1530c5a9a5
commit f4022dc68a
2 changed files with 2 additions and 1 deletions

View File

@ -123,7 +123,7 @@ final class MultiSorter {
private static CrossReaderComparator getComparator(List<CodecReader> readers, SortField sortField) throws IOException {
switch(sortField.getType()) {
// TODO: use global ords for string sort
// ncommit: use segment-local ords for string sort
case INT:
{
List<NumericDocValues> values = new ArrayList<>();

View File

@ -819,6 +819,7 @@ public class IndexSearcher {
sumTotalTermFreq = terms.getSumTotalTermFreq();
sumDocFreq = terms.getSumDocFreq();
}
return new CollectionStatistics(field, reader.maxDoc(), docCount, sumTotalTermFreq, sumDocFreq);
}
}