From 3748dd928ecdecfd3f42f9bd364c8e9bf40fa862 Mon Sep 17 00:00:00 2001 From: "Yuan,Xiao" Date: Mon, 20 Nov 2023 14:17:25 -0800 Subject: [PATCH 1/2] Improve set deletions pct javadoc --- .../src/java/org/apache/lucene/index/TieredMergePolicy.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lucene/core/src/java/org/apache/lucene/index/TieredMergePolicy.java b/lucene/core/src/java/org/apache/lucene/index/TieredMergePolicy.java index 208aa297287..2eb6a18f833 100644 --- a/lucene/core/src/java/org/apache/lucene/index/TieredMergePolicy.java +++ b/lucene/core/src/java/org/apache/lucene/index/TieredMergePolicy.java @@ -150,8 +150,9 @@ 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. + * Sets the maximum percentage of deleted documents that is tolerated in the index. + * 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. * *

When the maximum delete percentage is lowered, the indexing thread will call for merges more From 948237b943e4d838b5ab98b71e054055345bf50e Mon Sep 17 00:00:00 2001 From: "Yuan,Xiao" Date: Mon, 20 Nov 2023 14:17:25 -0800 Subject: [PATCH 2/2] Improve set deletions pct javadoc --- .../java/org/apache/lucene/index/TieredMergePolicy.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lucene/core/src/java/org/apache/lucene/index/TieredMergePolicy.java b/lucene/core/src/java/org/apache/lucene/index/TieredMergePolicy.java index 2eb6a18f833..a37ca335502 100644 --- a/lucene/core/src/java/org/apache/lucene/index/TieredMergePolicy.java +++ b/lucene/core/src/java/org/apache/lucene/index/TieredMergePolicy.java @@ -150,10 +150,10 @@ public class TieredMergePolicy extends MergePolicy { } /** - * Sets the maximum percentage of deleted documents that is tolerated in the index. - * 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. + * Sets the maximum percentage of deleted documents that is tolerated in the index. 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. * *

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