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

Examples of com.dotcms.repackage.org.elasticsearch.action.admin.indices.optimize.OptimizeRequest


  public boolean optimize(List<String> indexNames) {
    try {
      IndicesAdminClient iac = new ESClient().getClient().admin().indices();

      OptimizeRequest req = new OptimizeRequest(indexNames.toArray(new String[indexNames.size()]));

      OptimizeResponse res = iac.optimize(req).get();

      Logger.info(this.getClass(), "Optimizing " + indexNames + " :" + res.getSuccessfulShards() + "/" + res.getTotalShards()
          + " shards optimized");
View Full Code Here

TOP

Related Classes of com.dotcms.repackage.org.elasticsearch.action.admin.indices.optimize.OptimizeRequest

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.