Class ElasticsearchRequestSuccessAssessor
java.lang.Object
org.hibernate.search.backend.elasticsearch.work.impl.ElasticsearchRequestSuccessAssessor
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ElasticsearchRequestSuccessAssessorstatic final ElasticsearchRequestSuccessAssessor -
Method Summary
Modifier and TypeMethodDescriptionbuilder()voidcheckSuccess(com.google.gson.JsonObject bulkResponseItem) Check the given bulk response item, throwing an exception if it indicates a failure.voidcheckSuccess(ElasticsearchResponse response) Check the given response, throwing an exception if the reponse indicates a failure.toString()
-
Field Details
-
SHARD_FAILURE_CHECKED_INSTANCE
-
DEFAULT_INSTANCE
-
-
Method Details
-
builder
-
toString
-
checkSuccess
Check the given response, throwing an exception if the reponse indicates a failure.- Parameters:
response- The response, containing information about the outcome of the request.- Throws:
SearchException- If the result is a failure.
-
checkSuccess
public void checkSuccess(com.google.gson.JsonObject bulkResponseItem) Check the given bulk response item, throwing an exception if it indicates a failure.- Parameters:
bulkResponseItem- The part of the response body concerning the request whose success is to be assessed.- Throws:
SearchException- If the result is a failure.
-