getNumberOfShards() public method

Gets the number of nodes in the index.
public getNumberOfShards ( ) : integer
return integer
 public function testGetNumberOfShards()
 {
     $this->assertEquals(1, $this->_index->getNumberOfShards());
 }