IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Create an index
editCreate an index
editOk, now that we are starting fresh, let’s add a new index with some custom settings:
$indexParams['index'] = 'my_index'; $indexParams['body']['settings']['number_of_shards'] = 2; $indexParams['body']['settings']['number_of_replicas'] = 0; $client->indices()->create($indexParams);