diff --git a/lucene/src/java/org/apache/lucene/index/TieredMergePolicy.java b/lucene/src/java/org/apache/lucene/index/TieredMergePolicy.java index 9f24120f3d8..653afad45f8 100644 --- a/lucene/src/java/org/apache/lucene/index/TieredMergePolicy.java +++ b/lucene/src/java/org/apache/lucene/index/TieredMergePolicy.java @@ -187,8 +187,12 @@ public class TieredMergePolicy extends MergePolicy { /** Sets the allowed number of segments per tier. Smaller * values mean more merging but fewer segments. - * setMaxMergeAtOnce} otherwise you'll hit - * Default is 10.0. */ + * + *
NOTE: this value should be >= the {@link + * #setMaxMergeAtOnce} otherwise you'll force too much + * merging to occur.
+ * + *Default is 10.0.
*/ public TieredMergePolicy setSegmentsPerTier(double v) { if (v < 2.0) { throw new IllegalArgumentException("segmentsPerTier must be >= 2.0 (got " + v + ")");