Class UpdateSettingsClusterStateUpdateRequest
- java.lang.Object
-
- org.elasticsearch.cluster.ack.ClusterStateUpdateRequest<T>
-
- org.elasticsearch.cluster.ack.IndicesClusterStateUpdateRequest<UpdateSettingsClusterStateUpdateRequest>
-
- org.elasticsearch.action.admin.indices.settings.put.UpdateSettingsClusterStateUpdateRequest
-
- All Implemented Interfaces:
AckedRequest
public class UpdateSettingsClusterStateUpdateRequest extends IndicesClusterStateUpdateRequest<UpdateSettingsClusterStateUpdateRequest>
Cluster state update request that allows to update settings for some indices
-
-
Constructor Summary
Constructors Constructor Description UpdateSettingsClusterStateUpdateRequest()
-
Method Summary
Modifier and Type Method Description booleanisPreserveExisting()Returnstrueiff the settings update should only add but not update settings.UpdateSettingsClusterStateUpdateRequestsetPreserveExisting(boolean preserveExisting)Iff set totruethis settings update will only add settings not already set on an index.Settingssettings()Returns theSettingsto updateUpdateSettingsClusterStateUpdateRequestsettings(Settings settings)Sets theSettingsto update-
Methods inherited from class org.elasticsearch.cluster.ack.IndicesClusterStateUpdateRequest
indices, indices
-
Methods inherited from class org.elasticsearch.cluster.ack.ClusterStateUpdateRequest
ackTimeout, ackTimeout, masterNodeTimeout, masterNodeTimeout
-
-
-
-
Method Detail
-
isPreserveExisting
public boolean isPreserveExisting()
Returnstrueiff the settings update should only add but not update settings. If the setting already exists it should not be overwritten by this update. The default isfalse
-
setPreserveExisting
public UpdateSettingsClusterStateUpdateRequest setPreserveExisting(boolean preserveExisting)
Iff set totruethis settings update will only add settings not already set on an index. Existing settings remain unchanged.
-
settings
public UpdateSettingsClusterStateUpdateRequest settings(Settings settings)
Sets theSettingsto update
-
-