Aggregations class

Represents the elasticsearch aggregations response for QueryType.term type of SearchController.

Constructors

Aggregations({List<Map>? data})

Properties

afterKey Map?
If the number of composite buckets is too high (or unknown) to be returned in a single response use the afterKey parameter to retrieve the next results.
getter/setter pair
data List<Map>?
An array of composite aggregations obtained from the applied aggs in options.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
raw Map?
Raw aggregations returned by ES query.
getter/setter pair
rawData Map?
An object of raw response as-is from elasticsearch query.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clone() Aggregations
To clone the object
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAfterKey(Map? key) → void
To set the after value to implement pagination for composite aggregations.
setData(String? aggField, List<Map> data, {bool append = false}) → void
Method to set data explicitly.
setRaw(Map? rawResponse) → void
To set the raw response from elasticsearch.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited