SDK
SDK PHP v3.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

setDefaultIndex #

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


Return Value #

Returns the Kuzzle SDK object to allow chaining.

Usage #

Copied to clipboard!
<?php
use \Kuzzle\Kuzzle;
$kuzzle = new Kuzzle('localhost');
$kuzzle->setDefaultIndex('myIndex');