Elasticsearch Date Range Aggregation and Time Zone -
i try build date range aggregation, have problem add time zone. timestamps in search documents like: "2015-06-29t00:00:00.000+02:00". it`s yoga-time german time zone.
the date histogramm aggregation , date range filter have setting time zone:
for example:
"range" : { "valid_to" : { "from" : "now/d", "to" : "now/d+1d", "time_zone" : "+02:00" } }
but can not find similar in date range aggregation:
"valid_to" : { "date_range" : { "field" : "valid_to", "ranges" : [ { "key" : "today", "from" : "now/d", "to" : "now/d+1d" }, { "key" : "week", "from" : "now/d", "to" : "now/d+6d" }, ... ] } }
did know solution add time zone date range aggregation , not hand? (for example subtract time zone offset)
at moment there no option provide time-zone in date range aggregation. workaround explicitly specify offset. there open issue regarding same should chime in there.
Comments
Post a Comment