Package org.elasticsearch.action.search
Class MultiSearchResponse.Item
java.lang.Object
org.elasticsearch.action.search.MultiSearchResponse.Item
- All Implemented Interfaces:
Writeable
- Enclosing class:
- MultiSearchResponse
A search response item, holding the actual search response, or an error message if it failed.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe actual failure message, null if its not a failure.The actual search response, null if its a failure.boolean
Is it a failed search?void
writeTo(StreamOutput out)
Write this into the StreamOutput.
-
Constructor Details
-
Item
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
isFailure
public boolean isFailure()Is it a failed search? -
getFailureMessage
The actual failure message, null if its not a failure. -
getResponse
The actual search response, null if its a failure. -
getFailure
-