QueryCalculationAggregation

public struct QueryCalculationAggregation : Codable, Equatable

Returns a scalar calculation across all documents for the field specified. Possible calculations include min, max, sum, average, and unique_count.

Enums with an associated value of QueryCalculationAggregation: QueryAggregation

  • The type of aggregation command used. Options include: term, histogram, timeslice, nested, filter, min, max, sum, average, unique_count, and top_hits.

    Declaration

    Swift

    public var type: String
  • The field to perform the calculation on.

    Declaration

    Swift

    public var field: String
  • The value of the calculation.

    Declaration

    Swift

    public var value: Double?