public class TopHits extends QueryAggregation
| Modifier and Type | Field and Description |
|---|---|
protected TopHitsResults |
hits |
protected java.lang.Long |
size |
aggregations, discriminatorMapping, discriminatorPropertyName, matchingResults, results, type| Constructor and Description |
|---|
TopHits() |
| Modifier and Type | Method and Description |
|---|---|
TopHitsResults |
getHits()
Gets the hits.
|
java.lang.Long |
getSize()
Gets the size.
|
getAggregations, getMatchingResults, getResults, getTypeprotected java.lang.Long size
protected TopHitsResults hits
public java.lang.Long getSize()
Number of top hits returned by the aggregation.
public TopHitsResults getHits()