caohassl opened a new issue, #11805: URL: https://github.com/apache/lucene/issues/11805
### Description hi, I try to submit a Lucene search task using multiple threads, and when I cancel the search thread, the search task complete normally. But Some search tasks are time-consuming, I wonder if I could exit the search thread early to improve thread utilization. Expectation: The expectation is to exit the search thread early when it has been Interrupted I have tried {@link TimeLimitingCollector} (https://github.com/apache/lucene/blob/main/lucene/core/src/java/org/apache/lucene/search/TimeLimitingCollector.java) , but the ticksAllowed can not be set too small, so there are some waste of thread utilization still. I wonder if I could add a InterruptedCollector to received interrupt and exit early -- 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.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