mirror of https://github.com/apache/lucene.git
LUCENE-6766: don't throw exc from MultiXXX if there is an index sort
This commit is contained in:
parent
1530c5a9a5
commit
f4022dc68a
|
@ -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<>();
|
||||
|
|
|
@ -819,6 +819,7 @@ public class IndexSearcher {
|
|||
sumTotalTermFreq = terms.getSumTotalTermFreq();
|
||||
sumDocFreq = terms.getSumDocFreq();
|
||||
}
|
||||
|
||||
return new CollectionStatistics(field, reader.maxDoc(), docCount, sumTotalTermFreq, sumDocFreq);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue