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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueiff the settings update should only add but not update settings.setPreserveExisting(boolean preserveExisting)Iff set totruethis settings update will only add settings not already set on an index.settings()Returns theSettingsto updateSets theSettingsto updateMethods inherited from class org.elasticsearch.cluster.ack.IndicesClusterStateUpdateRequest
indices, indicesMethods inherited from class org.elasticsearch.cluster.ack.ClusterStateUpdateRequest
ackTimeout, ackTimeout, masterNodeTimeout, masterNodeTimeout
-
Constructor Details
-
UpdateSettingsClusterStateUpdateRequest
public UpdateSettingsClusterStateUpdateRequest()
-
-
Method Details
-
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
Iff set totruethis settings update will only add settings not already set on an index. Existing settings remain unchanged. -
settings
Returns theSettingsto update -
settings
Sets theSettingsto update
-