protected void indexDocument(Document doc) throws IOException { // write the document to the index m_writer.updateDocument(m_res.getRootPath(), doc); } }
/** * Updates a resource with the given index writer and the new document provided.<p> * * @param indexWriter the index writer to update the resource with * @param rootPath the root path of the resource to update * @param doc the new document for the resource */ protected void updateResource(I_CmsIndexWriter indexWriter, String rootPath, I_CmsSearchDocument doc) { try { indexWriter.updateDocument(rootPath, doc); } catch (Exception e) { if (LOG.isWarnEnabled()) { LOG.warn( Messages.get().getBundle().key( Messages.LOG_IO_INDEX_DOCUMENT_UPDATE_2, rootPath, m_index.getName()), e); } } } }