Class ElasticsearchRequestSuccessAssessor

java.lang.Object
org.hibernate.search.backend.elasticsearch.work.impl.ElasticsearchRequestSuccessAssessor

public class ElasticsearchRequestSuccessAssessor extends Object
  • Field Details

  • Method Details

    • builder

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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.