It seems like its working for me. Note, all times stored in ES are UTC
based, and when stating things like 24h interval in the histogram facet it
will be computed based on the UTC based values. Here is, for example, what I
get for both values:
2010-12-13T00:00:00.000Z from 2010-12-13T17:21:09.000Z
2010-12-16T00:00:00.000Z from 2010-12-16T17:21:09.000Z
The first value is the UTC based value of the histogram facet, and the
second is the value provided when indexing. You can see that they fall into
the correct buckets.
There was a thread a few days ago suggesting that the histogram facet (or
maybe a specialized date histogram facet), should allow to provide the
timezones to work with, since the main computations are done on the facet
itself, and it make sense to want it in a day interval, but with a different
On Thu, Dec 16, 2010 at 8:14 PM, Rich Kroll email@example.com wrote:
I have ran into an oddity when working with the HistogramFacet and hoped
someone could point me in the direction of what i'm doing wrong. The
problem relates to the time_interval of the Histogram facet, and if I try to
bucked on a day (24h), my dates are shifting backwards a day.
The following gist exemplifies the problem:
Thanks for the help!
“We can't solve problems by using the same kind of thinking we used when we
created them.” ~ Albert Einstein