}
}
protected boolean exists(final String sessionId, final String url) {
final String id = getId(sessionId, url);
try {
<BUG>final GetResponse response = ActionGetUtil.actionGet(getClient().prepareGet(index, type, id).setRefresh(true).execute());
</BUG>
return response.isExists();
} catch (Exception e) {
throw new EsAccessException("Failed to check if " + sessionId + ":" + url + " exists.", e);

}
return bulkRequest.setConsistencyLevel(writeConsistencyLevel).setRefresh(true).execute();
});
} catch (Exception e) {
throw new EsAccessException("Failed to insert " + list, e);
}
}
protected boolean exists(final String sessionId, final String url) {
final String id = getId(sessionId, url);
try {
final GetResponse response = getClient().get(c -> c.prepareGet(index, type, id).setRefresh(true).execute());
return response.isExists();
} catch (Exception e) {
throw new EsAccessException("Failed to check if " + sessionId + ":" + url + " exists.", e);
