We are using IndexSearcher to read lucene index. To make sure the queries return within a specified time, we are using a timeout on the CompletableFutures. But when the timeout