public function getShardsStatistics() { $data = $this->getData(); if (!isset($data['_shards'])) { throw new NotFoundException('Unable to find the field [_shards] from the response'); } return $data['_shards']; }