Open pokev25 opened 7 years ago
I found the answer in EsHelper.
public class EsService extends EsBaseService {
public Object clusterHealth() throws HttpException {
ClusterHealth health = esHelper.clusterHealth(null);
return esHelper.get(health,Object.class);
}
}
String serverUrl = "http://127.0.0.1:9200/";
helper = new EsService();
helper.init(serverUrl, null, null);
System.out.println(helper.clusterHealth().toString());
In JestClient
In RestClient
How do I do it at wES?