Apache Lucene open-source search software
Update javadocs for QueryTimeout (#12272)
Luca Cavanna082c49a9efc5
diff --git a/lucene/core/src/java/org/apache/lucene/index/QueryTimeout.java b/lucene/core/src/java/org/apache/lucene/index/QueryTimeout.javaindex 0c64f4c2c9a..f1e54342367 100644--- a/lucene/core/src/java/org/apache/lucene/index/QueryTimeout.java+++ b/lucene/core/src/java/org/apache/lucene/index/QueryTimeout.java@@ -17,14 +17,17 @@package org.apache.lucene.index;/**- * Base for query timeout implementations, which will provide a {@code shouldExit()} method, used- * with {@link ExitableDirectoryReader}.+ * Query timeout abstraction that controls whether a query should continue or be stopped. Can be set+ * to the searcher through {@link org.apache.lucene.search.IndexSearcher#setTimeout(QueryTimeout)},+ * in which case bulk scoring will be time-bound. Can also be used in combination with {@link+ * ExitableDirectoryReader}.*/public interface QueryTimeout {/**- * Called from {@link ExitableDirectoryReader.ExitableTermsEnum#next()} to determine whether to- * stop processing a query.+ * Called to determine whether to stop processing a query+ *+ * @return true if the query should stop, false otherwise*/- public abstract boolean shouldExit();+ boolean shouldExit();}