listIndexes() public method

List all existing indexes return an object in the form: array( "items" => array( array("name" => "contacts", "createdAt" => "2013-01-18T15:33:13.556Z"), array("name" => "notes", "createdAt" => "2013-01-18T15:33:13.556Z") ) ).
public listIndexes ( ) : mixed
return mixed
Example #1
0
 /**
  * Index Exists.
  *
  * Does this index exist?
  *
  * @return bool
  */
 public function indexExists()
 {
     foreach (Arr::get($this->client->listIndexes(), 'items', []) as $index) {
         if ($index['name'] == $this->getConfigurator()->index()) {
             return true;
         }
     }
     return false;
 }
 public function listIndexes()
 {
     return $this->client->listIndexes();
 }
 public function listIndexes()
 {
     $this->checkClient(__FUNCTION__);
     return $this->client->listIndexes();
 }