ToXContent, ToXContentFragment, Aggregation, TopHitspublic class ParsedTopHits extends ParsedAggregation implements TopHits
Aggregation.CommonFieldsToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsTYPED_KEYS_DELIMITERmetadataEMPTY_PARAMS| Constructor | Description |
|---|---|
ParsedTopHits() |
| Modifier and Type | Method | Description |
|---|---|---|
protected XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
|
static ParsedTopHits |
fromXContent(XContentParser parser,
java.lang.String name) |
|
SearchHits |
getHits() |
|
java.lang.String |
getType() |
getMetaData, getNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeclareAggregationFields, getMetaData, getName, parseDouble, setName, toXContenttoXContentisFragmentpublic 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