OpenSearch/docs/java-api/admin/indices/update-settings.asciidoc

17 lines
468 B
Plaintext
Raw Normal View History

[[java-admin-indices-update-settings]]
==== Update Indices Settings
You can change index settings by calling:
[source,java]
--------------------------------------------------
client.admin().indices().prepareUpdateSettings("twitter") <1>
.setSettings(Settings.builder() <2>
.put("index.number_of_replicas", 0)
)
.get();
--------------------------------------------------
<1> Index to update
<2> Settings