try {
AdminLogger.log(this.getClass(), "delete", "Trying to delete index: " + indexName);
IndicesAdminClient iac = new ESClient().getClient().admin().indices();
DeleteIndexRequest req = new DeleteIndexRequest(indexName);
DeleteIndexResponse res = iac.delete(req).actionGet();
AdminLogger.log(this.getClass(), "delete", "Index: " + indexName + " deleted.");
return res.isAcknowledged();
} catch (Exception e) {
throw new ElasticSearchException(e.getMessage());
}
}