public interface ElasticsearchRequestSuccessAssessor
| Modifier and Type | Method and Description |
|---|---|
void |
checkSuccess(ElasticsearchResponse response)
Check the given response, throwing an exception if the reponse indicates a failure.
|
void |
checkSuccess(com.google.gson.JsonObject bulkResponseItem)
Check the given bulk response item, return
true if it is successful, false otherwise. |
void checkSuccess(ElasticsearchResponse response) throws SearchException
response - The response, containing information about the outcome of the request.SearchException - If the result is a failure.void checkSuccess(com.google.gson.JsonObject bulkResponseItem)
true if it is successful, false otherwise.bulkResponseItem - The part of the response body concerning the request whose success is to be assessed.SearchException - If the result is a failure.Copyright © 2006–2017 Hibernate. All rights reserved.