Unknown SDK


Create a new empty index, with no associated mapping.

createIndex([index], [options], callback)

Arguments Type Description
index string Optional index to query. If no set, defaults to Kuzzle.defaultIndex
options JSON object Optional parameters
callback function Callback handling the response


Option Type Description Default
queuable boolean Make this request queuable or not true

Callback Response

Returns an object with the index creation status.


Copied to clipboard!
use \Kuzzle\Kuzzle;
$kuzzle = new Kuzzle('localhost');
$result = $kuzzle->createIndex('myIndex');

Callback response:

Copied to clipboard!
  "acknowledged": true,
  "shards_acknowledged": true