Skip to content

Commit

Permalink
Organize soft_deletes settings into a single group
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dnhatn committed May 8, 2018
1 parent d9b9d7d commit 5d677a0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ public final class IndexSettings {
/**
* Specifies if the index should use soft-delete instead of hard-delete for update/delete operations.
*/
public static final Setting<Boolean> INDEX_SOFT_DELETES_SETTING = Setting.boolSetting("index.soft_deletes", true, Property.IndexScope);
public static final Setting<Boolean> INDEX_SOFT_DELETES_SETTING =
Setting.boolSetting("index.soft_deletes.enabled", true, Property.IndexScope);

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

0 comments on commit 5d677a0

Please sign in to comment.