jtibshirani commented on a change in pull request #656: URL: https://github.com/apache/lucene/pull/656#discussion_r802075985
########## File path: lucene/core/src/java/org/apache/lucene/codecs/lucene91/Lucene91HnswVectorsReader.java ########## @@ -253,6 +277,36 @@ public TopDocs search(String field, float[] target, int k, Bits acceptDocs) thro scoreDocs); } + private TopDocs exactSearch( + float[] target, + int k, + VectorSimilarityFunction similarityFunction, + VectorValues vectorValues, + DocIdSetIterator acceptIterator) + throws IOException { + HitQueue topK = new HitQueue(k, false); + int numVisited = 0; + + int doc; + while ((doc = acceptIterator.nextDoc()) != DocIdSetIterator.NO_MORE_DOCS) { Review comment: Good point, I'll rework this. -- 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