public class QueryTopHitsAggregation extends QueryAggregation
Modifier and Type | Field and Description |
---|---|
protected QueryTopHitsAggregationResult |
hits |
protected java.lang.String |
name |
protected java.lang.Long |
size |
discriminatorMapping, discriminatorPropertyName, type
Constructor and Description |
---|
QueryTopHitsAggregation() |
Modifier and Type | Method and Description |
---|---|
QueryTopHitsAggregationResult |
getHits()
Gets the hits.
|
java.lang.String |
getName()
Gets the name.
|
java.lang.Long |
getSize()
Gets the size.
|
getType
protected java.lang.Long size
protected java.lang.String name
protected QueryTopHitsAggregationResult hits
public java.lang.Long getSize()
The number of documents to return.
public java.lang.String getName()
Identifier specified in the query request of this aggregation.
public QueryTopHitsAggregationResult getHits()