QueryGroupByAggregationResult

public struct QueryGroupByAggregationResult : Codable, Equatable

Top value result for the term aggregation.

  • key

    Value of the field with a non-zero frequency in the document set.

    Declaration

    Swift

    public var key: String
  • Number of documents that contain the ‘key’.

    Declaration

    Swift

    public var matchingResults: Int
  • The relevancy for this group.

    Declaration

    Swift

    public var relevancy: Double?
  • The number of documents which have the group as the value of specified field in the whole set of documents in this collection. Returned only when the relevancy parameter is set to true.

    Declaration

    Swift

    public var totalMatchingDocuments: Int?
  • The estimated number of documents which would match the query and also meet the condition. Returned only when the relevancy parameter is set to true.

    Declaration

    Swift

    public var estimatedMatchingDocuments: Int?
  • An array of sub-aggregations.

    Declaration

    Swift

    public var aggregations: [QueryAggregation]?