diff --git a/_clients/java.md b/_clients/java.md index 54a9dbb1..e471b9f9 100644 --- a/_clients/java.md +++ b/_clients/java.md @@ -302,7 +302,7 @@ client.indices().create(createIndexRequest); IndexSettings indexSettings = new IndexSettings.Builder().autoExpandReplicas("0-all").build(); PutIndicesSettingsRequest putIndicesSettingsRequest = new PutIndicesSettingsRequest.Builder().index(index).value(indexSettings).build(); -client.indices().putSettings(PutIndicesSettingsRequest); +client.indices().putSettings(putIndicesSettingsRequest); ``` {% include copy.html %}