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