Elastica\Cluster\Health\Index::getUnassignedShards PHP Method

getUnassignedShards() public method

Gets the number of unassigned shards.
public getUnassignedShards ( ) : integer
return integer
    public function getUnassignedShards()
    {
        return $this->_data['unassigned_shards'];
    }

Usage Example

 public function testGetUnassignedShards()
 {
     $this->assertEquals(7, $this->_index->getUnassignedShards());
 }