Pranshu-S opened a new pull request, #16882:
URL: https://github.com/apache/lucene/pull/16882

   ### Description
   
   <!--
   If this is your first contribution to Lucene, please make sure you have 
reviewed the contribution guide.
   https://github.com/apache/lucene/blob/main/CONTRIBUTING.md
   -->
   
   When scoring a batch of candidate nodes gathered during a hop (direct 
neighbors  and their expanded neighbours-of-neighbors), the searcher scored the 
entire toScore batch via bulkScore() and incremented `visitedCount` by the 
**full batch size**, regardless of how much budget remained. If the batch was 
larger than the remaining limit, this overshot visitLimit by up to one full 
batch.
   
   Similar constraints were already setup in 
[HnswGraphSearcher](https://github.com/apache/lucene/blob/main/lucene/core/src/java/org/apache/lucene/util/hnsw/HnswGraphSearcher.java#L339-L340).


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