msfroh commented on PR #16222: URL: https://github.com/apache/lucene/pull/16222#issuecomment-4675107801
@txwei -- I got Claude Code to throw together a possible solution in https://github.com/apache/lucene/pull/16240. Essentially, we add a "budget" to `FilteredTermsEnum` to limit the number of states that can be visited. If it's cheap and exhaustive, we visit the small number of states and we're done. If we run out of budget, we fall back to the `estimateCost` logic with the deferred traversal. -- 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]
