DateHistogram

data class DateHistogram(val field: QueryField, val alias: String, val unit: AggregationDateUnit, val timeZone: String = "UTC", val dense: Boolean = false, val scope: AggregationGroupScope? = null) : AggregationGroup

Constructors

Link copied to clipboard
constructor(field: QueryField, alias: String, unit: AggregationDateUnit, timeZone: String = "UTC", dense: Boolean = false, scope: AggregationGroupScope? = null)

Properties

Link copied to clipboard
open override val alias: String
Link copied to clipboard
Link copied to clipboard
open override val field: QueryField

The grouped field; null only for a TERMS or HISTOGRAM group whose input is an expression.

Link copied to clipboard
open override val scope: AggregationGroupScope?

Where field is read when the query expands elements: null (the innermost element, relative to its container) or AggregationGroupScope.ROOT (a root field, by its absolute path), so a count of elements can be grouped by a field of the record they belong to, such as its creation day. Without elements both read the root.

Link copied to clipboard
Link copied to clipboard