jtibshirani opened a new pull request #413:
URL: https://github.com/apache/lucene/pull/413


   When the reader has no live docs, `KnnVectorQuery` can error out. This 
happens
   because `IndexReader#numDocs` is 0, and we end up passing an illegal value of
   `k = 0` to the search method.
   
   Now we make sure `KnnVectorQuery` always passes `k > 0` to the search method.
   The commit also updates the numDocs check to use the leaf reader (instead of
   top-level reader), which seems more helpful.


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