return response.isExists();
} catch (Exception e) {
throw new EsAccessException("Failed to check if " + sessionId + ":" + url + " exists.", e);
}
}
<BUG>public int getCount(final Consumer<CountRequestBuilder> callback) {
final CountRequestBuilder builder = getClient().prepareCount(index).setTypes(type);
</BUG>
callback.accept(builder);
<BUG>return (int) ActionGetUtil.actionGet(builder.execute()).getCount();
}</BUG>
protected <T> T get(final Class<T> clazz, final String sessionId, final String url) {

return response.isExists();
} catch (Exception e) {
throw new EsAccessException("Failed to check if " + sessionId + ":" + url + " exists.", e);
}
}
public int getCount(final Consumer<CountRequestBuilder> callback) {
return (int) getClient().get(c -> {
final CountRequestBuilder builder = c.prepareCount(index).setTypes(type);
callback.accept(builder);
return builder.execute();
}).getCount();
}
protected <T> T get(final Class<T> clazz, final String sessionId, final String url) {
