public class InternalSearchResponse extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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 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–2015. All rights reserved.