/** * @see org.opencms.search.I_CmsIndexWriter#deleteDocument(org.opencms.db.CmsPublishedResource) */ public void deleteDocument(CmsPublishedResource resource) throws IOException { if ((m_server != null) && (m_index != null)) { try { LOG.info( Messages.get().getBundle().key( Messages.LOG_SOLR_WRITER_DOC_DELETE_3, resource.getRootPath(), m_index.getName(), m_index.getPath())); m_server.deleteById(resource.getStructureId().toString(), m_commitMs); } catch (SolrServerException e) { throw new IOException(e.getLocalizedMessage(), e); } catch (SolrException e) { throw new IOException(e.getLocalizedMessage(), e); } } }