jpountz commented on PR #12679:
URL: https://github.com/apache/lucene/pull/12679#issuecomment-1766795903

   Thanks for explaining, I had overlooked how the `Integer.MAX_VALUE` was used 
indeed. I'm still interested in figuring out if we can have stronger guarantees 
on the worst-case memory usage that this query could have (I believe noting 
prevents this list from growing unbounded? if the threshold is high?). E.g. 
could we abort the approximate search if the list maintained by the 
`RnnCollector` grows too large, and fall back to an exact search that is based 
on a `TwoPhaseIterator` instead of eagerly collecting all matches into a list?


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