kaivalnp opened a new pull request, #13285: URL: https://github.com/apache/lucene/pull/13285
### Description Along similar lines of #13202, adding timeout support for [`AbstractVectorSimilarityQuery`](https://github.com/apache/lucene/blob/main/lucene/core/src/java/org/apache/lucene/search/AbstractVectorSimilarityQuery.java) which performs similarity-based vector searches While the graph search happens inside `#scorer`, it may go over the configured `QueryTimeout` and we can early terminate it to return whatever partial results are found.. One inherent benefit we have for exact search is that we return a [lazy-loading iterator](https://github.com/apache/lucene/blob/afe982b3ef559f79fceaee307a95245a2c57e9cf/lucene/core/src/java/org/apache/lucene/search/AbstractVectorSimilarityQuery.java#L147-L148) over all vectors, so this is inherently covered by the `TimeLimitingBulkScorer` (as opposed to [exact search](https://github.com/apache/lucene/blob/afe982b3ef559f79fceaee307a95245a2c57e9cf/lucene/core/src/java/org/apache/lucene/search/AbstractKnnVectorQuery.java#L191-L192) of `AbstractKnnVectorQuery` which manually goes over all vectors to retain the topK during `#rewrite`) -- 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