Is it possible to specify a fixed interval for a date histogram
facet/aggregation? Here is what I mean by fixed:
Lets say that I created an aggregation that returned data for between a
certain time range. This could be for the last 24 hours, the last 30 days,
etc. Regardless of the time range, I would like to get exactly six buckets
of data regardless of the size of the time range.
So if the time range was for the last 24 hours, I would get a bucket for
each four hour period. If the time range were 30 days, I would get a bucket
for each 5 day period. Is it possible to specify something like this in the
date time histogram?
Another option could be to run two requests: a first one to figure the
min/max timestamps and a second one with an interval that would generate
the desired number of buckets.
Is it possible to specify a fixed interval for a date histogram
facet/aggregation? Here is what I mean by fixed:
Lets say that I created an aggregation that returned data for between a
certain time range. This could be for the last 24 hours, the last 30 days,
etc. Regardless of the time range, I would like to get exactly six buckets
of data regardless of the size of the time range.
So if the time range was for the last 24 hours, I would get a bucket for
each four hour period. If the time range were 30 days, I would get a bucket
for each 5 day period. Is it possible to specify something like this in the
date time histogram?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.