Skip to content

Apache Lucene open-source search software

fix javadoc

Simon Willnauer42b419aa3123
diff --git a/lucene/contrib/misc/src/java/org/apache/lucene/search/SearcherManager.java b/lucene/contrib/misc/src/java/org/apache/lucene/search/SearcherManager.java
index 96f7aa6ad8a..8222d09d4ac 100644
--- a/lucene/contrib/misc/src/java/org/apache/lucene/search/SearcherManager.java
+++ b/lucene/contrib/misc/src/java/org/apache/lucene/search/SearcherManager.java
@@ -33,11 +33,11 @@ import org.apache.lucene.store.Directory;
* This class ensures each IndexSearcher instance is not
* closed until it is no longer needed.
*
- * <p>Use {@link #get} to obtain the current searcher, and
+ * <p>Use {@link #acquire} to obtain the current searcher, and
* {@link #release} to release it, like this:
*
* <pre>
- * IndexSearcher s = manager.get();
+ * IndexSearcher s = manager.acquire();
* try {
* // Do searching, doc retrieval, etc. with s
* } finally {
@@ -166,7 +166,7 @@ public class SearcherManager implements Closeable {
}
/** Obtain the current IndexSearcher. You must match
- * every call to get with one call to {@link #release};
+ * every call to acquire with one call to {@link #release};
* it's best to do so in a finally clause. */
public IndexSearcher acquire() {
IndexSearcher searcher;
@@ -179,7 +179,7 @@ public class SearcherManager implements Closeable {
}
/** Release the searcher previously obtained with {@link
- * #get}.
+ * #acquire}.
*
* <p><b>NOTE</b>: it's safe to call this after {@link
* #close}. */