Indices Update Settings API - gnuhub/elasticsearch GitHub Wiki

Allowing to change specific index level settings. The only setting supported is the index.number_of_replicas setting allowing to dynamically change the number of replicas an index has.

p. The REST endpoint is /_settings (to update all indices) or {index}/_settings to update one (or more) indices settings. The body of the request includes the updated settings, for example:

{
    "index" : {
        "number_of_replicas" : 4
    }
}

The above will change the number of replicas to 4 from the current number of replicas. Here is a curl example:

curl -XPUT 'localhost:9200/my_index/_settings' -d '
{
    "index" : {
        "number_of_replicas" : 4
    }
}
'
⚠️ **GitHub.com Fallback** ⚠️