/** * Deletes a record from the index. * * @param Searchable $record */ public function remove($record, $stage = 'Stage') { $index = $this->getIndex(); $type = $index->getType($record->getElasticaType()); try { $type->deleteDocument($record->getElasticaDocument($stage)); } catch (\Exception $ex) { \SS_Log::log($ex, \SS_Log::WARN); return false; } return true; }
/** * Deletes a record from the index. * * @param Searchable $record */ public function remove($record) { $index = $this->getIndex(); $type = $index->getType($record->getElasticaType()); $type->deleteDocument($record->getElasticaDocument()); }