org.elasticsearch.action.search
Class MultiSearchResponse

java.lang.Object
  extended by org.elasticsearch.action.search.MultiSearchResponse
All Implemented Interfaces:
Iterable<MultiSearchResponse.Item>, ActionResponse, Streamable, ToXContent

public class MultiSearchResponse
extends Object
implements ActionResponse, Iterable<MultiSearchResponse.Item>, ToXContent

A multi search response.


Nested Class Summary
static class MultiSearchResponse.Item
          A search response item, holding the actual search response, or an error message if it failed.
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
MultiSearchResponse(MultiSearchResponse.Item[] items)
           
 
Method Summary
 MultiSearchResponse.Item[] getResponses()
          The list of responses, the order is the same as the one provided in the request.
 Iterator<MultiSearchResponse.Item> iterator()
           
 void readFrom(StreamInput in)
           
 MultiSearchResponse.Item[] responses()
          The list of responses, the order is the same as the one provided in the request.
 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params)
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiSearchResponse

public MultiSearchResponse(MultiSearchResponse.Item[] items)
Method Detail

iterator

public Iterator<MultiSearchResponse.Item> iterator()
Specified by:
iterator in interface Iterable<MultiSearchResponse.Item>

responses

public MultiSearchResponse.Item[] responses()
The list of responses, the order is the same as the one provided in the request.


getResponses

public MultiSearchResponse.Item[] getResponses()
The list of responses, the order is the same as the one provided in the request.


readFrom

public void readFrom(StreamInput in)
              throws IOException
Specified by:
readFrom in interface Streamable
Throws:
IOException

writeTo

public void writeTo(StreamOutput out)
             throws IOException
Specified by:
writeTo in interface Streamable
Throws:
IOException

toXContent

public XContentBuilder toXContent(XContentBuilder builder,
                                  ToXContent.Params params)
                           throws IOException
Specified by:
toXContent in interface ToXContent
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.