Deepika0510 opened a new pull request, #927: URL: https://github.com/apache/lucene/pull/927
### Problem Statement Adding optional "timeout" capabilities to `IndexSearcher`. This would enable users to (optionally) specify a maximum time budget for search execution. If the search "times out", partial results would be available. Original Jira [issue](https://issues.apache.org/jira/browse/LUCENE-10151). ### Approach Created `TimeLimitingBulkscorer` extended from `BulkScorer` class to wrap methods with timeout and delegates the calls to underlying `BulkScorer`. Also created `TestTimeLimitingBulkScorer`. Link for the [Jira](https://issues.apache.org/jira/browse/LUCENE-10544) where all the approaches have been discussed. ### Note This implementation is in progress and the current PR consists of basic search functionality with timeout value as additional argument. ### Checklist Please review the following and check all that apply: - [x] I have reviewed the guidelines for [How to Contribute](https://github.com/apache/lucene/blob/main/CONTRIBUTING.md) and my code conforms to the standards described there to the best of my ability. - [x] I have raised the PR against the main branch. - [x] I have run ./gradlew check. - [x] I have added tests for my changes. <!-- 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 --> -- 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