Histogram

public struct Histogram : Codable, Equatable

Histogram.

Enums with an associated value of Histogram: QueryAggregation

  • The type of aggregation command used. For example: term, filter, max, min, etc.

    Declaration

    Swift

    public var type: String?
  • Array of aggregation results.

    Declaration

    Swift

    public var results: [AggregationResult]?
  • Number of matching results.

    Declaration

    Swift

    public var matchingResults: Int?
  • Aggregations returned by Discovery.

    Declaration

    Swift

    public var aggregations: [QueryAggregation]?
  • The field where the aggregation is located in the document.

    Declaration

    Swift

    public var field: String?
  • Interval of the aggregation. (For ‘histogram’ type).

    Declaration

    Swift

    public var interval: Int?