public class InternalSearchResponse extends java.lang.Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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, wait
isFragment
public 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 ToXContent
java.io.IOException
public static InternalSearchResponse readInternalSearchResponse(StreamInput in) throws java.io.IOException
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException