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