public class InternalSearchResponse extends 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,
Boolean terminatedEarly) |
Modifier and Type | Method and Description |
---|---|
Aggregations |
aggregations() |
static InternalSearchResponse |
empty() |
SearchHits |
hits() |
Map<String,List<ProfileShardResult>> |
profile()
Returns the profile results for this search response (including all shards).
|
void |
readFrom(StreamInput in) |
static InternalSearchResponse |
readInternalSearchResponse(StreamInput in) |
Suggest |
suggest() |
Boolean |
terminatedEarly() |
boolean |
timedOut() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public InternalSearchResponse(InternalSearchHits hits, InternalAggregations aggregations, Suggest suggest, InternalProfileShardResults profileResults, boolean timedOut, Boolean terminatedEarly)
public static InternalSearchResponse empty()
public boolean timedOut()
public Boolean terminatedEarly()
public SearchHits hits()
public Aggregations aggregations()
public Suggest suggest()
public Map<String,List<ProfileShardResult>> profile()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
public static InternalSearchResponse readInternalSearchResponse(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
Copyright © 2009–2017. All rights reserved.