I'm showing a chart that details activity between a start and an end
date and I'm using ElasticSearch, along with the histogram query, to
categorize my activity into 24 hour intervals. It seems ElasticSearch
doesn't return all intervals (within my date range query), but instead
only those that actually have data. Much of the time that probably
makes the most sense and I'm guessing ElasticSearch doesn't even
create the interval if there is no data for it.
However, my question is, is it possible to return all intervals, even
those that have 0 data. I can obviously fill in the gaps in code after
I have retrieved the results, it just seems like it might be more
efficient if I could provide some type of parameter to the histogram
query to instruct it to return all intervals.