public class SearchResponseSections extends java.lang.Object implements ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
protected Aggregations |
aggregations |
protected SearchHits |
hits |
protected int |
numReducePhases |
protected SearchProfileShardResults |
profileResults |
protected Suggest |
suggest |
protected java.lang.Boolean |
terminatedEarly |
protected boolean |
timedOut |
EMPTY_PARAMS
Constructor and Description |
---|
SearchResponseSections(SearchHits hits,
Aggregations aggregations,
Suggest suggest,
boolean timedOut,
java.lang.Boolean terminatedEarly,
SearchProfileShardResults profileResults,
int numReducePhases) |
Modifier and Type | Method and Description |
---|---|
Aggregations |
aggregations() |
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).
|
Suggest |
suggest() |
java.lang.Boolean |
terminatedEarly() |
boolean |
timedOut() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
protected void |
writeTo(StreamOutput out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
protected final SearchHits hits
protected final Aggregations aggregations
protected final Suggest suggest
protected final SearchProfileShardResults profileResults
protected final boolean timedOut
protected final java.lang.Boolean terminatedEarly
protected final int numReducePhases
public SearchResponseSections(SearchHits hits, Aggregations aggregations, Suggest suggest, boolean timedOut, java.lang.Boolean terminatedEarly, SearchProfileShardResults profileResults, int numReducePhases)
public final boolean timedOut()
public final java.lang.Boolean terminatedEarly()
public final SearchHits hits()
public final Aggregations aggregations()
public final Suggest suggest()
public final int getNumReducePhases()
public final java.util.Map<java.lang.String,ProfileShardResult> profile()
public final XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
protected void writeTo(StreamOutput out) throws java.io.IOException
java.io.IOException