setDefaultIndex

kuzzle.setDefaultIndex('index');
<?php
use \Kuzzle\Kuzzle;

$kuzzle = new Kuzzle('localhost');

$kuzzle->setDefaultIndex('myIndex');

Set the default data index. Has the same effect than the defaultIndex constructor option.


Return value

Returns the Kuzzle object to allow chaining.