QueryTopHitsAggregation

public struct QueryTopHitsAggregation : Codable, Equatable

Returns the top documents ranked by the score of the query.

Enums with an associated value of QueryTopHitsAggregation: 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 number of documents to return.

    Declaration

    Swift

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

    Declaration

    Swift

    public var name: String?
  • Undocumented

    Declaration

    Swift

    public var hits: QueryTopHitsAggregationResult?