Package com.dotcms.repackage.org.elasticsearch.action.admin.indices.delete

Examples of com.dotcms.repackage.org.elasticsearch.action.admin.indices.delete.DeleteIndexResponse


    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());
    }
  }
View Full Code Here

TOP

Related Classes of com.dotcms.repackage.org.elasticsearch.action.admin.indices.delete.DeleteIndexResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.