public class InternalSearchResponse extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_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 ToXContentIOExceptionpublic static InternalSearchResponse readInternalSearchResponse(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionCopyright © 2009–2017. All rights reserved.