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.
This commit is contained in:
Nhat Nguyen 2018-05-08 10:15:30 -04:00
parent d9b9d7d107
commit 5d677a00d3
1 changed files with 2 additions and 1 deletions

View File

@ -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