Skip to content

Apache Lucene open-source search software

small javadoc fixes to IndexWriter

Michael McCandlesscce1e9841630
diff --git a/src/java/org/apache/lucene/index/IndexWriter.java b/src/java/org/apache/lucene/index/IndexWriter.java
index 31e814873ee..62a0b89e1ce 100644
--- a/src/java/org/apache/lucene/index/IndexWriter.java
+++ b/src/java/org/apache/lucene/index/IndexWriter.java
@@ -1711,9 +1711,16 @@ public class IndexWriter {
* threads.
*
* <p><b>NOTE</b>: if this method hits an OutOfMemoryError
- * you should immediately close the writer. See <a
+ * you should immediately close the writer, again. See <a
* href="#OOME">above</a> for details.</p>
*
+ * <p><b>NOTE</b>: it is dangerous to always call
+ * close(false), especially when IndexWriter is not open
+ * for very long, because this can result in "merge
+ * starvation" whereby long merges will never have a
+ * chance to finish. This will cause too many segments in
+ * your index over time.</p>
+ *
* @param waitForMerges if true, this call will block
* until all merges complete; else, it will ask all
* running merges to abort, wait until those merges have