From 8908328de40abcd7e5681a48b65a34006e4f5256 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Fri, 19 Dec 2014 15:07:25 +0000 Subject: [PATCH] fix javadocs: maybeReopen -> maybeRefresh git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1646764 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/java/org/apache/lucene/search/SearcherManager.java | 4 ++-- .../test/org/apache/lucene/search/TestSearcherManager.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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);