for (AliasAction action : actions) { if (action.removeIndex()) { IndexMetaData index = currentState.metaData().getIndices().get(action.getIndex()); if (index == null) { throw new IndexNotFoundException(action.getIndex()); IndexMetaData index = metadata.get(action.getIndex()); if (index == null) { throw new IndexNotFoundException(action.getIndex()); aliasValidator.validateAlias(alias, action.getIndex(), indexRouting, indexLookup); if (Strings.hasLength(filter)) { IndexService indexService = indices.get(index.getIndex().getName()); indices.put(action.getIndex(), indexService);
for (AliasAction action : actions) { if (action.removeIndex()) { IndexMetaData index = currentState.metaData().getIndices().get(action.getIndex()); if (index == null) { throw new IndexNotFoundException(action.getIndex()); IndexMetaData index = metadata.get(action.getIndex()); if (index == null) { throw new IndexNotFoundException(action.getIndex()); aliasValidator.validateAlias(alias, action.getIndex(), indexRouting, indexLookup); if (Strings.hasLength(filter)) { IndexService indexService = indices.get(index.getIndex()); indices.put(action.getIndex(), indexService);
for (AliasAction action : actions) { if (action.removeIndex()) { IndexMetaData index = currentState.metaData().getIndices().get(action.getIndex()); if (index == null) { throw new IndexNotFoundException(action.getIndex()); IndexMetaData index = metadata.get(action.getIndex()); if (index == null) { throw new IndexNotFoundException(action.getIndex()); aliasValidator.validateAlias(alias, action.getIndex(), indexRouting, indexLookup); if (Strings.hasLength(filter)) { IndexService indexService = indices.get(index.getIndex().getName()); indices.put(action.getIndex(), indexService);
for (AliasAction action : actions) { if (action.removeIndex()) { IndexMetaData index = currentState.metaData().getIndices().get(action.getIndex()); if (index == null) { throw new IndexNotFoundException(action.getIndex()); IndexMetaData index = metadata.get(action.getIndex()); if (index == null) { throw new IndexNotFoundException(action.getIndex()); aliasValidator.validateAlias(alias, action.getIndex(), indexRouting, indexLookup); if (Strings.hasLength(filter)) { IndexService indexService = indices.get(index.getIndex().getName()); indices.put(action.getIndex(), indexService);