Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
New
Description
In SimpleNaiveBayesClassifier docsWithClassSize variable is initialized to MultiFields.getTerms(this.atomicReader, this.classFieldName).getDocCount() which may be -1 if the codec doesn't support doc counts, therefore there should be an alternative way to initialize such a variable with the documents count.