Module Values_0.TermsAggregationSource

Performs an aggregation that will return a list of buckets. The list of buckets is a ranked list of the number of occurrences of an aggregation field value.

Sourcetype nonrec t = {
  1. maxBuckets : MaxBuckets.t option;
    (*

    The number of buckets to return in the response. Default to 10.

    *)
}
Sourceval make : ?maxBuckets:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Integer of MaxBuckets.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t