use of io.searchbox.indices.aliases.ModifyAliases in project graylog2-server by Graylog2.
the class ClientES6 method removeAliasMapping.
@Override
public void removeAliasMapping(String indexName, String alias) {
final RemoveAliasMapping removeAliasMapping = new RemoveAliasMapping.Builder(indexName, alias).build();
final ModifyAliases addAliasRequest = new ModifyAliases.Builder(removeAliasMapping).build();
executeWithExpectedSuccess(addAliasRequest, "failed to remove alias " + alias + " for index " + indexName);
}
Aggregations