/**
  * (non-PHPdoc)
  * @see SugarSearchEngineInterface::delete()
  */
 public function delete(SugarBean $bean)
 {
     if (self::isSearchEngineDown()) {
         return;
     }
     if (empty($bean->id)) {
         return;
     }
     try {
         $indexName = $this->getWriteIndexForBean($bean);
         $this->logger->debug("Going to delete {$bean->id} on index {$indexName}");
         $index = new \Elastica\Index($this->_client, $indexName);
         $type = new \Elastica\Type($index, $this->getIndexType($bean));
         $type->deleteById($bean->id);
     } catch (Exception $e) {
         $this->reportException("Unable to delete index", $e);
         $this->checkException($e);
     }
 }