getActiveShards() public method

Gets the number of active shards.
public getActiveShards ( ) : integer
return integer
 public function testGetActiveShards()
 {
     $this->assertEquals(4, $this->_index->getActiveShards());
 }