getState() public method

Returns the full state of the cluster.
public getState ( ) : array
return array State array
示例#1
0
文件: Status.php 项目: kskod/Elastica
 /**
  * Returns all index settings
  *
  * @return array Index settings
  */
 public function getSettings()
 {
     // TODO Update as soon as new API is implemented
     $cluster = new Cluster($this->_index->getClient());
     $state = $cluster->getState();
     return $state['metadata']['indices'][$this->_index->getName()]['settings'];
 }