Package org.elasticsearch.action.admin.indices.exists

Source Code of org.elasticsearch.action.admin.indices.exists.IndexExistsUtils

package org.elasticsearch.action.admin.indices.exists;

import org.elasticsearch.action.admin.indices.exists.indices.IndicesExistsRequest;
import org.elasticsearch.client.IndicesAdminClient;

public class IndexExistsUtils {

  public static boolean exists(IndicesAdminClient client, String indexName) {
    return client.exists(new IndicesExistsRequest(indexName)).actionGet().isExists();
  }
}
TOP

Related Classes of org.elasticsearch.action.admin.indices.exists.IndexExistsUtils

TOP
Copyright © 2018 www.massapi.com. 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.