August 2019
Intermediate to advanced
560 pages
13h 41m
English
The purpose of the date histogram aggregation is to group date values into ranges with a fixed time unit interval and count the documents. The range distance is specified by the interval value in time units such as millisecond, 1ms, Xms, second, 1s, Xms, minute, 1m, Xm, hour, 1h, Xh, day, 1d, Xd, week, 1w, month, 1M, quarter, 1q. year, and 1y, where X is a positive integer. We can use the format parameter to specify the custom date format. The starting value is respective to the time unit and we can use the offset parameter to adjust the starting value with ±time_unit to denote a positive or negative offset of the time unit:
Read now
Unlock full access