mirror of https://github.com/apache/lucene.git
LUCENE-7591 - approximate to no. of terms when DVs are not available
This commit is contained in:
parent
25c7855bba
commit
87d8b5450a
|
@ -94,7 +94,8 @@ public class DatasetSplitter {
|
|||
}
|
||||
}
|
||||
if (classValues == null) {
|
||||
throw new IllegalStateException("field \"" + classFieldName + "\" must have sorted (set) doc values");
|
||||
// approximate with no. of terms
|
||||
noOfClasses += leave.reader().terms(classFieldName).size();
|
||||
}
|
||||
noOfClasses += valueCount;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue