public class InternalSearchResponse extends java.lang.Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
InternalSearchResponse(SearchHits hits,
InternalAggregations aggregations,
Suggest suggest,
SearchProfileShardResults profileResults,
boolean timedOut,
java.lang.Boolean terminatedEarly,
int numReducePhases) |
| Modifier and Type | Method and Description |
|---|---|
Aggregations |
aggregations() |
static InternalSearchResponse |
empty() |
int |
getNumReducePhases()
Returns the number of reduce phases applied to obtain this search response
|
SearchHits |
hits() |
java.util.Map<java.lang.String,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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentpublic InternalSearchResponse(SearchHits hits, InternalAggregations aggregations, Suggest suggest, SearchProfileShardResults profileResults, boolean timedOut, java.lang.Boolean terminatedEarly, int numReducePhases)
public static InternalSearchResponse empty()
public boolean timedOut()
public java.lang.Boolean terminatedEarly()
public SearchHits hits()
public Aggregations aggregations()
public Suggest suggest()
public int getNumReducePhases()
public java.util.Map<java.lang.String,ProfileShardResult> profile()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic static InternalSearchResponse readInternalSearchResponse(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface Streamablejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface Streamablejava.io.IOException