aggregationField property Null safety

String? aggregationField
read / write

It enables you to get DISTINCT results (useful when you are dealing with sessions, events, and logs type data).

It utilizes composite aggregations which are newly introduced in ES v6 and offer vast performance benefits over a traditional terms aggregation.

Implementation

String? aggregationField;