/** * Removes all indexes included in the given list (which must contain the name of an index to remove).<p> * * @param indexNames the names of the index to remove */ public void removeSearchIndexes(List<String> indexNames) { Iterator<String> i = indexNames.iterator(); while (i.hasNext()) { String indexName = i.next(); // get the search index by name CmsSearchIndex index = getIndex(indexName); if (index != null) { // remove the index removeSearchIndex(index); } else { if (LOG.isWarnEnabled()) { LOG.warn(Messages.get().getBundle().key(Messages.LOG_NO_INDEX_WITH_NAME_1, indexName)); } } } }
/** * Removes all indexes included in the given list (which must contain the name of an index to remove).<p> * * @param indexNames the names of the index to remove */ public void removeSearchIndexes(List<String> indexNames) { Iterator<String> i = indexNames.iterator(); while (i.hasNext()) { String indexName = i.next(); // get the search index by name CmsSearchIndex index = getIndex(indexName); if (index != null) { // remove the index removeSearchIndex(index); } else { if (LOG.isWarnEnabled()) { LOG.warn(Messages.get().getBundle().key(Messages.LOG_NO_INDEX_WITH_NAME_1, indexName)); } } } }
while (itItems.hasNext()) { CmsListItem listItem = itItems.next(); searchManager.removeSearchIndex(searchManager.getIndex((String)listItem.get(LIST_COLUMN_NAME))); removedItems.add(listItem.getId());
/** * Commits the edited search index to the search manager.<p> */ @Override public void actionCommit() { List<Throwable> errors = new ArrayList<Throwable>(); try { m_searchManager.removeSearchIndex(getSearchIndexIndex()); clearDialogObject(); writeConfiguration(); // if we go back to /searchindex/singleindex (overview) the deleted searchindex is not // there any more in the CmsSearchManager and CmsOverviewSearchIndex.getUserObject will // find null -> defineWidgets will provide null as bean... setParamCloseLink(CmsToolManager.linkForToolPath(getJsp(), getParentPath())); } catch (Throwable t) { errors.add(t); } // set the list of errors to display when saving failed setCommitErrors(errors); }
searchManager.removeSearchIndex(searchManager.getIndex(index)); writeConfiguration(false); } else if (action.equals(LIST_ACTION_REBUILD)) {