mayya-sharipova commented on a change in pull request #277:
URL: https://github.com/apache/lucene/pull/277#discussion_r702809122



##########
File path: lucene/core/src/test/org/apache/lucene/util/hnsw/TestHnswGraph.java
##########
@@ -167,24 +167,27 @@ public void testSearchWithAcceptOrds() throws IOException 
{
             vectors, VectorSimilarityFunction.DOT_PRODUCT, 16, 100, 
random().nextInt());
     HnswGraph hnsw = builder.build(vectors);
 
-    Bits acceptOrds = createRandomAcceptOrds(vectors.size);
+    // the first 10 docs must not be deleted to ensure the expected recall
+    Bits acceptOrds = createRandomAcceptOrds(10, vectors.size);
     NeighborQueue nn =
         HnswGraph.search(
             new float[] {1, 0},
             10,
-            5,
+            10,

Review comment:
       Addressed in 35ee89af212541a10138e3b0aa3b5c9de1c92aae




-- 
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