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 f97e7e7a7c1..5371f366dc2 100644 --- a/lucene/core/src/java/org/apache/lucene/search/SearcherManager.java +++ b/lucene/core/src/java/org/apache/lucene/search/SearcherManager.java @@ -238,10 +238,6 @@ public final class SearcherManager implements Closeable { private synchronized void swapSearcher(IndexSearcher newSearcher) throws IOException { ensureOpen(); - // Don't allow un-closing! - if (currentSearcher == null && newSearcher != null) { - throw new AlreadyClosedException("this SearcherManager is closed"); - } final IndexSearcher oldSearcher = currentSearcher; currentSearcher = newSearcher; release(oldSearcher);