LUCENE-5466: query is always null in countDocsWithClass() of SimpleNaiveBayesClassifier.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1572793 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Koji Sekiguchi 2014-02-28 00:49:39 +00:00
parent 8830ab2dc5
commit 173daaedef
2 changed files with 4 additions and 1 deletions

View File

@ -103,6 +103,9 @@ Bug fixes
* LUCENE-5432: EliasFanoDocIdSet: Fix number of index entry bits when the maximum
entry is a power of 2. (Paul Elschot via Adrien Grand)
* LUCENE-5466: query is always null in countDocsWithClass() of SimpleNaiveBayesClassifier.
(Koji Sekiguchi)
Test Framework
* LUCENE-5449: Rename _TestUtil and _TestHelper to remove the leading _.

View File

@ -88,8 +88,8 @@ public class SimpleNaiveBayesClassifier implements Classifier<BytesRef> {
this.textFieldNames = textFieldNames;
this.classFieldName = classFieldName;
this.analyzer = analyzer;
this.docsWithClassSize = countDocsWithClass();
this.query = query;
this.docsWithClassSize = countDocsWithClass();
}
private int countDocsWithClass() throws IOException {