TopHits

public struct TopHits : Codable, Equatable

TopHits.

Enums with an associated value of TopHits: 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]?
  • Number of top hits returned by the aggregation.

    Declaration

    Swift

    public var size: Int?
  • Undocumented

    Declaration

    Swift

    public var hits: TopHitsResults?