diff --git a/lucene/core/src/java/org/apache/lucene/index/ExitableDirectoryReader.java b/lucene/core/src/java/org/apache/lucene/index/ExitableDirectoryReader.java index d80529e85b3..b52189b14bf 100644 --- a/lucene/core/src/java/org/apache/lucene/index/ExitableDirectoryReader.java +++ b/lucene/core/src/java/org/apache/lucene/index/ExitableDirectoryReader.java @@ -31,6 +31,8 @@ import org.apache.lucene.util.automaton.CompiledAutomaton; * allows for a {@link QueryTimeout} implementation object to be checked periodically * to see if the thread should exit or not. If {@link QueryTimeout#shouldExit()} * returns true, an {@link ExitingReaderException} is thrown. + * + * @see org.apache.lucene.search.TimeLimitingCollector */ public class ExitableDirectoryReader extends FilterDirectoryReader { @@ -43,7 +45,7 @@ public class ExitableDirectoryReader extends FilterDirectoryReader { public static class ExitingReaderException extends RuntimeException { /** Constructor **/ - ExitingReaderException(String msg) { + public ExitingReaderException(String msg) { super(msg); } } diff --git a/lucene/core/src/java/org/apache/lucene/search/TimeLimitingCollector.java b/lucene/core/src/java/org/apache/lucene/search/TimeLimitingCollector.java index 695799456f8..2e35a4c72f9 100644 --- a/lucene/core/src/java/org/apache/lucene/search/TimeLimitingCollector.java +++ b/lucene/core/src/java/org/apache/lucene/search/TimeLimitingCollector.java @@ -28,6 +28,8 @@ import org.apache.lucene.util.ThreadInterruptedException; * take longer than the maximum allowed search time limit. After this time is * exceeded, the search thread is stopped by throwing a * {@link TimeExceededException}. + * + * @see org.apache.lucene.index.ExitableDirectoryReader */ public class TimeLimitingCollector implements Collector {