public class InternalSearchResponse extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
InternalSearchResponse(InternalSearchHits hits,
InternalFacets facets,
InternalAggregations aggregations,
Suggest suggest,
boolean timedOut,
Boolean terminatedEarly) |
| Modifier and Type | Method and Description |
|---|---|
Aggregations |
aggregations() |
static InternalSearchResponse |
empty() |
Facets |
facets() |
SearchHits |
hits() |
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, InternalFacets facets, InternalAggregations aggregations, Suggest suggest, boolean timedOut, Boolean terminatedEarly)
public static InternalSearchResponse empty()
public boolean timedOut()
public Boolean terminatedEarly()
public SearchHits hits()
public Facets facets()
public Aggregations aggregations()
public Suggest suggest()
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–2016. All rights reserved.