Module org.elasticsearch.server
Class ParsedTopHits
java.lang.Object
org.elasticsearch.search.aggregations.ParsedAggregation
org.elasticsearch.search.aggregations.metrics.ParsedTopHits
- All Implemented Interfaces:
- Aggregation,- TopHits,- ToXContent,- ToXContentFragment
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.AggregationAggregation.CommonFieldsNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContentToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
- 
Field SummaryFields inherited from class org.elasticsearch.search.aggregations.ParsedAggregationmetadataFields inherited from interface org.elasticsearch.search.aggregations.AggregationTYPED_KEYS_DELIMITERFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected XContentBuilderdoXContentBody(XContentBuilder builder, ToXContent.Params params) static ParsedTopHitsfromXContent(XContentParser parser, String name) getHits()getType()Methods inherited from class org.elasticsearch.search.aggregations.ParsedAggregationdeclareAggregationFields, getMetadata, getName, parseDouble, setName, toXContentMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.search.aggregations.AggregationgetMetadata, getNameMethods inherited from interface org.elasticsearch.xcontent.ToXContenttoXContentMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragmentisFragment
- 
Constructor Details- 
ParsedTopHitspublic ParsedTopHits()
 
- 
- 
Method Details- 
getType- Specified by:
- getTypein interface- Aggregation
- Returns:
- a string representing the type of the aggregation. This type is added to the aggregation name in the response, so that it can later be used by clients to determine type of the aggregation and parse it into the proper object.
 
- 
getHits
- 
doXContentBodyprotected XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
- doXContentBodyin class- ParsedAggregation
- Throws:
- IOException
 
- 
fromXContent- Throws:
- IOException
 
 
-