org.elasticsearch.search.internal
Class InternalSearchResponse
java.lang.Object
org.elasticsearch.search.internal.InternalSearchResponse
- All Implemented Interfaces:
- Streamable, ToXContent
public class InternalSearchResponse
- extends java.lang.Object
- implements Streamable, ToXContent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InternalSearchResponse
public InternalSearchResponse(InternalSearchHits hits,
InternalFacets facets,
boolean timedOut)
timedOut
public boolean timedOut()
hits
public SearchHits hits()
facets
public Facets facets()
toXContent
public XContentBuilder toXContent(XContentBuilder builder,
ToXContent.Params params)
throws java.io.IOException
- Specified by:
toXContent
in interface ToXContent
- Throws:
java.io.IOException
readInternalSearchResponse
public static InternalSearchResponse readInternalSearchResponse(StreamInput in)
throws java.io.IOException
- Throws:
java.io.IOException
readFrom
public void readFrom(StreamInput in)
throws java.io.IOException
- Specified by:
readFrom
in interface Streamable
- Throws:
java.io.IOException
writeTo
public void writeTo(StreamOutput out)
throws java.io.IOException
- Specified by:
writeTo
in interface Streamable
- Throws:
java.io.IOException