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