Class ElasticsearchRequestSuccessAssessor


  • public class ElasticsearchRequestSuccessAssessor
    extends Object
    • Method Detail

      • checkSuccess

        public void checkSuccess​(ElasticsearchResponse response)
                          throws SearchException
        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.