mirror of https://github.com/apache/lucene.git
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:
parent
8830ab2dc5
commit
173daaedef
|
@ -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 _.
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue