Search in sources :

Example 1 with DeleteAliasRequest

use of org.graylog.shaded.elasticsearch7.org.elasticsearch.client.indices.DeleteAliasRequest in project graylog2-server by Graylog2.

the class IndicesAdapterES7 method removeAlias.

@Override
public void removeAlias(String index, String alias) {
    final DeleteAliasRequest request = new DeleteAliasRequest(index, alias);
    client.execute((c, requestOptions) -> c.indices().deleteAlias(request, requestOptions), "Unable to remove alias " + alias + ", pointing to " + index);
}
Also used : DeleteAliasRequest(org.graylog.shaded.elasticsearch7.org.elasticsearch.client.indices.DeleteAliasRequest)

Aggregations

DeleteAliasRequest (org.graylog.shaded.elasticsearch7.org.elasticsearch.client.indices.DeleteAliasRequest)1