QueryTermAggregation

public struct QueryTermAggregation : Codable, Equatable

Returns the top values for the field specified.

Enums with an associated value of QueryTermAggregation: 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 in the document used to generate top values from.

    Declaration

    Swift

    public var field: String
  • The number of top values returned.

    Declaration

    Swift

    public var count: Int?
  • Identifier specified in the query request of this aggregation.

    Declaration

    Swift

    public var name: String?
  • Array of top values for the field.

    Declaration

    Swift

    public var results: [QueryTermAggregationResult]?