/** * Execute a direct delete by query on the associated index and type * * @param BaseElasticsearchEntity $entity * @param bool $flush */ public function delete($entity, $flush = true) { $this->_sm->remove($entity); if ($flush) { $this->_sm->flush($entity); } }
protected function doRemoveEntities($entities) { $this->searchManager->remove($entities); }