// indices/create-index.asciidoc:81

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