Apache Lucene open-source search software
Knn(Float-->Byte)VectorField javadocs update in KnnByteVectorQuery (#13637)
Christine Poerschkeea562f6ef2b3
diff --git a/lucene/core/src/java/org/apache/lucene/search/KnnByteVectorQuery.java b/lucene/core/src/java/org/apache/lucene/search/KnnByteVectorQuery.javaindex db5ae4a0d9d..9d6d71bc7a7 100644--- a/lucene/core/src/java/org/apache/lucene/search/KnnByteVectorQuery.java+++ b/lucene/core/src/java/org/apache/lucene/search/KnnByteVectorQuery.java@@ -20,7 +20,7 @@ import java.io.IOException;import java.util.Arrays;import java.util.Objects;import org.apache.lucene.codecs.KnnVectorsReader;-import org.apache.lucene.document.KnnFloatVectorField;+import org.apache.lucene.document.KnnByteVectorField;import org.apache.lucene.index.ByteVectorValues;import org.apache.lucene.index.FieldInfo;import org.apache.lucene.index.LeafReader;@@ -52,7 +52,7 @@ public class KnnByteVectorQuery extends AbstractKnnVectorQuery {* Find the <code>k</code> nearest documents to the target vector according to the vectors in the* given field. <code>target</code> vector.*- * @param field a field that has been indexed as a {@link KnnFloatVectorField}.+ * @param field a field that has been indexed as a {@link KnnByteVectorField}.* @param target the target of the search* @param k the number of documents to find* @throws IllegalArgumentException if <code>k</code> is less than 1@@ -65,7 +65,7 @@ public class KnnByteVectorQuery extends AbstractKnnVectorQuery {* Find the <code>k</code> nearest documents to the target vector according to the vectors in the* given field. <code>target</code> vector.*- * @param field a field that has been indexed as a {@link KnnFloatVectorField}.+ * @param field a field that has been indexed as a {@link KnnByteVectorField}.* @param target the target of the search* @param k the number of documents to find* @param filter a filter applied before the vector search