jpountz commented on a change in pull request #239:
URL: https://github.com/apache/lucene/pull/239#discussion_r685769433



##########
File path: lucene/core/src/java/org/apache/lucene/index/CodecReader.java
##########
@@ -220,7 +220,7 @@ public final TopDocs searchNearestVectors(String field, 
float[] target, int k)
       return null;
     }
 
-    return getVectorReader().search(field, target, k);
+    return getVectorReader().search(field, target, k, getLiveDocs());

Review comment:
       We probably need to change the signature of `searchNearestVectors` to 
take a `Bits acceptDocs` instead, otherwise it would be impossible to wrap this 
reader in order to change the set of live documents.




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to