|
@@ -26,8 +26,9 @@ Requesting bucket intervals of a month.
|
|
|
|
|
|
Available expressions for interval: `year`, `quarter`, `month`, `week`, `day`, `hour`, `minute`, `second`
|
|
|
|
|
|
-
|
|
|
-Fractional values are allowed for seconds, minutes, hours, days and weeks. For example 1.5 hours:
|
|
|
+Time values can also be specified via abbreviations supported by <<time-units,time units>> parsing.
|
|
|
+Note that fractional time values are not supported, but you can address this by shifting to another
|
|
|
+time unit (e.g., `1.5h` could instead be specified as `90m`).
|
|
|
|
|
|
[source,js]
|
|
|
--------------------------------------------------
|
|
@@ -36,15 +37,13 @@ Fractional values are allowed for seconds, minutes, hours, days and weeks. For e
|
|
|
"articles_over_time" : {
|
|
|
"date_histogram" : {
|
|
|
"field" : "date",
|
|
|
- "interval" : "1.5h"
|
|
|
+ "interval" : "90m"
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
--------------------------------------------------
|
|
|
|
|
|
-See <<time-units>> for accepted abbreviations.
|
|
|
-
|
|
|
==== Keys
|
|
|
|
|
|
Internally, a date is represented as a 64 bit number representing a timestamp
|