QueryFilterAggregation

public struct QueryFilterAggregation : Codable, Equatable

A modifier that narrows the document set of the sub-aggregations it precedes.

Enums with an associated value of QueryFilterAggregation: 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 filter that is written in Discovery Query Language syntax and is applied to the documents before sub-aggregations are run.

    Declaration

    Swift

    public var match: String
  • Number of documents that match the filter.

    Declaration

    Swift

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

    Declaration

    Swift

    public var aggregations: [QueryAggregation]?