// indices/update-settings.asciidoc:13

[source, php]
----
$params = [
    'index' => 'twitter',
    'body' => [
        'index' => [
            'number_of_replicas' => 2,
        ],
    ],
];
$response = $client->indices()->putSettings($params);
----
