/** * Shuts down the search index.<p> * * This will close the local Lucene index searcher instance.<p> */ public void shutDown() { // close the index writer if (m_indexWriter != null) { try { m_indexWriter.commit(); m_indexWriter.close(); } catch (IOException e) { LOG.error( Messages.get().getBundle().key(Messages.LOG_IO_INDEX_WRITER_CLOSE_2, getPath(), getName()), e); } } indexSearcherClose(); if (m_analyzer != null) { m_analyzer.close(); } if (CmsLog.INIT.isInfoEnabled()) { CmsLog.INIT.info(Messages.get().getBundle().key(Messages.INIT_SHUTDOWN_INDEX_1, getName())); } }
writer.commit(); } catch (IOException e) { LOG.error(
writer.commit(); } catch (IOException e) { if (LOG.isWarnEnabled()) {
writer.commit(); writer.close(); } catch (IOException e) {
writer.commit(); } catch (IOException e) { if (LOG.isWarnEnabled()) {
writer.commit(); } catch (IOException e) { if (LOG.isWarnEnabled()) {
writer.commit(); } catch (IOException e) { if (LOG.isWarnEnabled()) {