kaivalnp commented on issue #12275:
URL: https://github.com/apache/lucene/issues/12275#issuecomment-3250490973
> users who want to take advantage of the timeout mechanism need to use one
`IndexSearcher` implementation per query, more or less
+1 to an API that allows using the same `IndexSearcher` for multiple queries
-- the current API just allows an absolute deadline for the entire searcher,
and is not very usable..
Could we do this by either:
1. Deprecating `IndexSearcher#setTimeout` and providing
`IndexSearcher#searchWithTimeout` variants for existing functions?
2. Modify `IndexSearcher#setTimeout` to accept something like a
`QueryTimeoutProvider`:
```java
public interface QueryTimeoutProvider {
QueryTimeout start();
}
```
..so that `IndexSearcher` can internally call `QueryTimeoutProvider#start`
before each query, and compute a query-specific deadline?
--
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]