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 boolean
isPreserveExisting()
Returnstrue
iff the settings update should only add but not update settings.UpdateSettingsClusterStateUpdateRequest
setPreserveExisting(boolean preserveExisting)
Iff set totrue
this settings update will only add settings not already set on an index.Settings
settings()
Returns theSettings
to updateUpdateSettingsClusterStateUpdateRequest
settings(Settings settings)
Sets theSettings
to 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()
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
public UpdateSettingsClusterStateUpdateRequest setPreserveExisting(boolean preserveExisting)
Iff set totrue
this settings update will only add settings not already set on an index. Existing settings remain unchanged.
-
settings
public UpdateSettingsClusterStateUpdateRequest settings(Settings settings)
Sets theSettings
to update
-
-