Apache Lucene open-source search software
LUCENE-2887: sharpen jdocs for IndexReader.undeleteAll
Michael McCandlessc403d3e75624
diff --git a/lucene/src/java/org/apache/lucene/index/IndexReader.java b/lucene/src/java/org/apache/lucene/index/IndexReader.javaindex 29d7869f214..7688884bb19 100644--- a/lucene/src/java/org/apache/lucene/index/IndexReader.java+++ b/lucene/src/java/org/apache/lucene/index/IndexReader.java@@ -1227,11 +1227,13 @@ public abstract class IndexReader implements Cloneable,Closeable {/** Undeletes all documents currently marked as deleted in* this index.*- * <p>NOTE: this is only a best-effort process. For- * example, if all documents in a given segment were- * deleted, Lucene now drops that segment from the index,- * which means its documents will not be recovered by this- * method.+ * <p>NOTE: this method can only recover documents marked+ * for deletion but not yet removed from the index; when+ * and how Lucene removes deleted documents is an+ * implementation detail, subject to change from release+ * to release. However, you can use {@link+ * #numDeletedDocs} on the current IndexReader instance to+ * see how many documents will be un-deleted.** @throws StaleReaderException if the index has changed* since this reader was opened