QueryHistogramAggregation
public struct QueryHistogramAggregation : Codable, Equatable
Numeric interval segments to categorize documents by using field values from a single numeric field to describe the category.
Enums with an associated value of QueryHistogramAggregation: 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 numeric field name used to create the histogram.
Declaration
Swift
public var field: String
-
The size of the sections that the results are split into.
Declaration
Swift
public var interval: Int
-
Identifier specified in the query request of this aggregation.
Declaration
Swift
public var name: String?
-
Array of numeric intervals.
Declaration
Swift
public var results: [QueryHistogramAggregationResult]?