benwtrent commented on code in PR #13181:
URL: https://github.com/apache/lucene/pull/13181#discussion_r1593083585


##########
lucene/core/src/java/org/apache/lucene/index/ByteVectorValues.java:
##########
@@ -75,4 +76,14 @@ public static void checkField(LeafReader in, String field) {
               + ")");
     }
   }
+
+  /**
+   * Return a {@link VectorScorer} for the given query vector. The iterator 
for the scorer is not
+   * the same instance as the iterator for this {@link ByteVectorValues}. It 
is a copy, and
+   * iteration over the scorer will not affect the iteration of this {@link 
ByteVectorValues}.
+   *
+   * @param query the query vector
+   * @return a {@link VectorScorer} instance
+   */
+  public abstract VectorScorer scorer(byte[] query) throws IOException;

Review Comment:
   Yes, I think so. These in general are still experimental APIs, so extending 
the method definition in the future could occur.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to