/**
  * Remove an indexed document
  *
  * @param Docman_Item $item The item to delete
  */
 public function delete(Docman_Item $item)
 {
     $this->logger->debug('delete document #' . $item->getId());
     try {
         $this->client->getIndexedElement($item->getGroupId(), $item->getId());
         $this->client->delete($item->getGroupId(), $item->getId());
     } catch (ElasticSearch_ElementNotIndexed $exception) {
         $this->logger->debug('element #' . $item->getId() . ' not indexed, nothing to delete');
         return;
     }
 }
 /**
  * Remove an indexed wiki page
  *
  * @param WikiPage $wiki_page The item to delete
  */
 public function delete(WikiPage $wiki_page)
 {
     $this->logger->debug('[Wiki] ElasticSearch: delete wiki page ' . $wiki_page->getPagename() . ' #' . $wiki_page->getId());
     try {
         $this->client->getIndexedElement($wiki_page->getGid(), $wiki_page->getId());
         $this->client->delete($wiki_page->getGid(), $wiki_page->getId());
     } catch (ElasticSearch_ElementNotIndexed $exception) {
         $this->logger->debug('[Wiki] ElasticSearch: wiki page ' . $wiki_page->getPagename() . ' #' . $wiki_page->getId() . ' not indexed, nothing to delete');
         return;
     }
 }