ToXContent
, ToXContentFragment
, Aggregation
, TopHits
public class ParsedTopHits extends ParsedAggregation implements TopHits
Aggregation.CommonFields
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
TYPED_KEYS_DELIMITER
metadata
EMPTY_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, getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
declareAggregationFields, getMetaData, getName, parseDouble, setName, toXContent
toXContent
isFragment
public java.lang.String getType()
getType
in interface Aggregation
public SearchHits getHits()
protected XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class ParsedAggregation
java.io.IOException
public static ParsedTopHits fromXContent(XContentParser parser, java.lang.String name) throws java.io.IOException
java.io.IOException