_index instanceof Index) { $this->_index->delete(); } } protected function _createIndex($name = 'test', $delete = true, $shards = 1) { return parent::_createIndex('test_aggregation_' . $name, $delete, $shards); } }