Apache Lucene open-source search software
Improve set deletions percentage javadoc (#12828)
Tinker Xiaoc8160b16f6a9
diff --git a/lucene/core/src/java/org/apache/lucene/index/TieredMergePolicy.java b/lucene/core/src/java/org/apache/lucene/index/TieredMergePolicy.javaindex b487012cc7d..7b56471c8bf 100644--- a/lucene/core/src/java/org/apache/lucene/index/TieredMergePolicy.java+++ b/lucene/core/src/java/org/apache/lucene/index/TieredMergePolicy.java@@ -157,9 +157,10 @@ public class TieredMergePolicy extends MergePolicy {}/**- * Controls the maximum percentage of deleted documents that is tolerated in the index. Lower- * values make the index more space efficient at the expense of increased CPU and I/O activity.- * Values must be between 5 and 50. Default value is 20.+ * Sets the maximum percentage of doc id space taken by deleted docs. The denominator includes+ * both active and deleted documents. Lower values make the index more space efficient at the+ * expense of increased CPU and I/O activity. Values must be between 5 and 50. Default value is+ * 20.** <p>When the maximum delete percentage is lowered, the indexing thread will call for merges more* often, meaning that write amplification factor will be increased. Write amplification factor