- The total for a search result, pertaining to all matched documents, independently from the offset/limit used when fetching hits. Includes in particular the total hit count.
<A> A aggregation(AggregationKey<A> key)
- Type Parameters:
A- The type of result for this aggregation.
key- The key previously used to register the aggregation during query building.
- The result for the given aggregation.
SearchException- If the given key was never registered while building this query, and is thus not mapped to anything.
- whether or not a timeout occurred processing the request.