On Tue, Oct 5, 2021 at 11:13 AM Adrien Grand <[email protected]> wrote:
Maybe one clean way to make it happen would be to make timeouts an > IndexSearcher feature. Whenever a timeout is set, IndexSearcher could split > the doc ID space into ranges of X docs and check the timeout between every > range. This way, the CollectionTerminatedException wouldn't be raised by a > query, IndexSearcher would be in full control of terminating the query > prematurely based on the configured timeout. > +1, I like this idea! It'd make timeouts more of a first class feature, and then the overhead should be very small if we check only after each block of partitioned docid space. Mike McCandless http://blog.mikemccandless.com > >
