1// indices/create-index.asciidoc:99
2
3[source, php]
4----
5$params = [
6 'index' => 'twitter',
7 'body' => [
8 'settings' => [
9 'number_of_shards' => 3,
10 'number_of_replicas' => 2,
11 ],
12 ],
13];
14$response = $client->indices()->create($params);
15----
16