Skip to content

Commit 5d677a0

Browse files
committed
Organize soft_deletes settings into a single group
GetSettingsResponseTests fails on the ccr branch because it excludes the root-level settings while we introduced "index.soft_deletes" - a root-level setting in this branch. This commit moves "index.soft_deletes" to the grouped-level settings. Moreover, as we are going to introduce more settings for soft_deletes, I think it's better to organize all these settings into a single group.
1 parent d9b9d7d commit 5d677a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/main/java/org/elasticsearch/index/IndexSettings.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@ public final class IndexSettings {
240240
/**
241241
* Specifies if the index should use soft-delete instead of hard-delete for update/delete operations.
242242
*/
243-
public static final Setting<Boolean> INDEX_SOFT_DELETES_SETTING = Setting.boolSetting("index.soft_deletes", true, Property.IndexScope);
243+
public static final Setting<Boolean> INDEX_SOFT_DELETES_SETTING =
244+
Setting.boolSetting("index.soft_deletes.enabled", true, Property.IndexScope);
244245

245246
/**
246247
* Controls how many soft-deleted documents will be kept around before being merged away. Keeping more deleted

0 commit comments

Comments
 (0)