I am writing a simple Java wrapper around ElasticSearch\'s admin client. To test it I have a main method that first checks if an index exists (IndicesExistsRequest), if so delet
You can also execute a synchronous request like this:
boolean exists = client.admin().indices() .prepareExists(INDEX_NAME) .execute().actionGet().isExists();