Apache Solr open-source search software
Merged revision(s) 1204970 from lucene/dev/branches/branch_3x: LUCENE-3464: Add javadocs about reopening FilterIndexReader
Uwe Schindler01dbe51a3e0a
diff --git a/lucene/src/java/org/apache/lucene/index/FilterIndexReader.java b/lucene/src/java/org/apache/lucene/index/FilterIndexReader.javaindex f394da0a379..8f01cdbfce6 100644--- a/lucene/src/java/org/apache/lucene/index/FilterIndexReader.java+++ b/lucene/src/java/org/apache/lucene/index/FilterIndexReader.java@@ -37,6 +37,11 @@ import java.util.concurrent.ConcurrentHashMap;* contained index reader. Subclasses of <code>FilterIndexReader</code> may* further override some of these methods and may also provide additional* methods and fields.+ * <p><b>Note:</b> The default implementation of {@link FilterIndexReader#doOpenIfChanged}+ * throws {@link UnsupportedOperationException} (like the base class),+ * so it's not possible to reopen a <code>FilterIndexReader</code>.+ * To reopen, you have to first reopen the underlying reader+ * and wrap it again with the custom filter.*/public class FilterIndexReader extends IndexReader {