Class MultiSearchResponse.Item

  • All Implemented Interfaces:
    Enclosing class:

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

      • Item

        public Item​(SearchResponse response,
                    java.lang.Exception exception)
    • Method Detail

      • isFailure

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

        public java.lang.String getFailureMessage()
        The actual failure message, null if its not a failure.
      • getFailure

        public java.lang.Exception getFailure()