public class ParsedTopHits extends ParsedAggregation implements TopHits
Aggregation.CommonFieldsToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsmetadataTYPED_KEYS_DELIMITEREMPTY_PARAMS| Constructor and Description |
|---|
ParsedTopHits() |
| Modifier and Type | Method and Description |
|---|---|
protected XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
static ParsedTopHits |
fromXContent(XContentParser parser,
java.lang.String name) |
SearchHits |
getHits() |
java.lang.String |
getType() |
declareAggregationFields, getMetaData, getName, parseDouble, setName, toXContentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetaData, getNameisFragment, toXContentpublic java.lang.String getType()
getType in interface Aggregationpublic SearchHits getHits()
protected XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody in class ParsedAggregationjava.io.IOExceptionpublic static ParsedTopHits fromXContent(XContentParser parser, java.lang.String name) throws java.io.IOException
java.io.IOException