diff --git a/lucene/core/src/java/org/apache/lucene/search/SearcherManager.java b/lucene/core/src/java/org/apache/lucene/search/SearcherManager.java index fa46e6852f1..f71134c1ad4 100644 --- a/lucene/core/src/java/org/apache/lucene/search/SearcherManager.java +++ b/lucene/core/src/java/org/apache/lucene/search/SearcherManager.java @@ -47,8 +47,8 @@ import org.apache.lucene.store.Directory; *

* In addition you should periodically call {@link #maybeRefresh}. While it's * possible to call this just before running each query, this is discouraged - * since it penalizes the unlucky queries that do the reopen. It's better to use - * a separate background thread, that periodically calls maybeReopen. Finally, + * since it penalizes the unlucky queries that need to refresh. It's better to use + * a separate background thread, that periodically calls {@link #maybeRefresh}. Finally, * be sure to call {@link #close} once you are done. * * @see SearcherFactory diff --git a/lucene/core/src/test/org/apache/lucene/search/TestSearcherManager.java b/lucene/core/src/test/org/apache/lucene/search/TestSearcherManager.java index 289664577da..81ec266d44c 100644 --- a/lucene/core/src/test/org/apache/lucene/search/TestSearcherManager.java +++ b/lucene/core/src/test/org/apache/lucene/search/TestSearcherManager.java @@ -146,7 +146,7 @@ public class TestSearcherManager extends ThreadedIndexingAndSearchingTestCase { @Override protected IndexSearcher getCurrentSearcher() throws Exception { if (random().nextInt(10) == 7) { - // NOTE: not best practice to call maybeReopen + // NOTE: not best practice to call maybeRefresh // synchronous to your search threads, but still we // test as apps will presumably do this for // simplicity: @@ -251,7 +251,7 @@ public class TestSearcherManager extends ThreadedIndexingAndSearchingTestCase { try { triedReopen.set(true); if (VERBOSE) { - System.out.println("NOW call maybeReopen"); + System.out.println("NOW call maybeRefresh"); } searcherManager.maybeRefresh(); success.set(true);