Search in sources :

Example 1 with DeleteIndexResponse

use of co.elastic.clients.elasticsearch.indices.DeleteIndexResponse in project syncope by apache.

the class ElasticsearchIndexManager method removeIndex.

public void removeIndex(final String domain, final AnyTypeKind kind) throws IOException {
    DeleteIndexResponse response = client.indices().delete(new DeleteIndexRequest.Builder().index(ElasticsearchUtils.getContextDomainName(domain, kind)).build());
    LOG.debug("Successfully removed {}: {}", ElasticsearchUtils.getContextDomainName(domain, kind), response);
}
Also used : DeleteIndexResponse(co.elastic.clients.elasticsearch.indices.DeleteIndexResponse) DeleteIndexRequest(co.elastic.clients.elasticsearch.indices.DeleteIndexRequest)

Aggregations

DeleteIndexRequest (co.elastic.clients.elasticsearch.indices.DeleteIndexRequest)1 DeleteIndexResponse (co.elastic.clients.elasticsearch.indices.DeleteIndexResponse)1