public class InternalSearchResponse extends java.lang.Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
InternalSearchResponse(InternalSearchHits hits,
InternalAggregations aggregations,
Suggest suggest,
InternalProfileShardResults profileResults,
boolean timedOut,
java.lang.Boolean terminatedEarly) |
Modifier and Type | Method and Description |
---|---|
Aggregations |
aggregations() |
static InternalSearchResponse |
empty() |
SearchHits |
hits() |
java.util.Map<java.lang.String,java.util.List<ProfileShardResult>> |
profile()
Returns the profile results for this search response (including all shards).
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
static InternalSearchResponse |
readInternalSearchResponse(StreamInput in) |
Suggest |
suggest() |
java.lang.Boolean |
terminatedEarly() |
boolean |
timedOut() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
public InternalSearchResponse(InternalSearchHits hits, InternalAggregations aggregations, Suggest suggest, InternalProfileShardResults profileResults, boolean timedOut, java.lang.Boolean terminatedEarly)
public static InternalSearchResponse empty()
public boolean timedOut()
public java.lang.Boolean terminatedEarly()
public SearchHits hits()
public Aggregations aggregations()
public Suggest suggest()
public java.util.Map<java.lang.String,java.util.List<ProfileShardResult>> profile()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public static InternalSearchResponse readInternalSearchResponse(StreamInput in) throws java.io.IOException
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException