benwtrent commented on PR #15334:
URL: https://github.com/apache/lucene/pull/15334#issuecomment-3398888405

   Looking at MemoryIndex:
   ```
       @Override
       public void searchNearestVectors(
           String field, float[] target, KnnCollector knnCollector, AcceptDocs 
acceptDocs) {}
   
       @Override
       public void searchNearestVectors(
           String field, byte[] target, KnnCollector knnCollector, AcceptDocs 
acceptDocs) {}
   ```
   
   So, returning no hits and forcing exact (or the caller to change), is the 
way. But we should definitely not throw an NPE. I can add a test really quick 
to make sure this won't throw an NPE.


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