Class MultiSearchResponse.Item

java.lang.Object
org.elasticsearch.action.search.MultiSearchResponse.Item
All Implemented Interfaces:
Writeable
Enclosing class:
MultiSearchResponse

public static class MultiSearchResponse.Item extends Object implements Writeable
A search response item, holding the actual search response, or an error message if it failed.
  • Constructor Details

  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • isFailure

      public boolean isFailure()
      Is it a failed search?
    • getFailureMessage

      @Nullable public String getFailureMessage()
      The actual failure message, null if its not a failure.
    • getResponse

      @Nullable public SearchResponse getResponse()
      The actual search response, null if its a failure.
    • getFailure

      public Exception getFailure()