LUCENE-6631 - added missing javadoc for kNN classifier

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1709529 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Tommaso Teofili 2015-10-20 07:54:15 +00:00
parent 02b4e3cf45
commit 4d7488ccf6
1 changed files with 23 additions and 0 deletions

View File

@ -48,11 +48,34 @@ import org.apache.lucene.util.BytesRef;
*/
public class KNearestNeighborClassifier implements Classifier<BytesRef> {
/**
* a {@link MoreLikeThis} instance used to perform MLT queries
*/
protected final MoreLikeThis mlt;
/**
* the name of the fields used as the input text
*/
protected final String[] textFieldNames;
/**
* the name of the field used as the output text
*/
protected final String classFieldName;
/**
* an {@link IndexSearcher} used to perform queries
*/
protected final IndexSearcher indexSearcher;
/**
* the no. of docs to compare in order to find the nearest neighbor to the input text
*/
protected final int k;
/**
* a {@link Query} used to filter the documents that should be used from this classifier's underlying {@link LeafReader}
*/
protected final Query query;
/**