From 4d7488ccf67a88df0b06533f8c4b3a3a3b80c7f9 Mon Sep 17 00:00:00 2001 From: Tommaso Teofili Date: Tue, 20 Oct 2015 07:54:15 +0000 Subject: [PATCH] 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 --- .../KNearestNeighborClassifier.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/lucene/classification/src/java/org/apache/lucene/classification/KNearestNeighborClassifier.java b/lucene/classification/src/java/org/apache/lucene/classification/KNearestNeighborClassifier.java index 6b49243bc84..b957dca1531 100644 --- a/lucene/classification/src/java/org/apache/lucene/classification/KNearestNeighborClassifier.java +++ b/lucene/classification/src/java/org/apache/lucene/classification/KNearestNeighborClassifier.java @@ -48,11 +48,34 @@ import org.apache.lucene.util.BytesRef; */ public class KNearestNeighborClassifier implements Classifier { + /** + * 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; /**