Hey ES gurus -
I'm trying to write an ElasticSearch query which in effect amounts to a
combination of a traditional term facet and a date histogram facet. I
thought that the date histogram facet may be exactly what I need here, but
from what I can tell it only seems to work on numeric field types,
providing statistical (or scripted) analysis on the values of the field in
question. While there's hack-ish ways around this, I'm hoping that there's
still a way to get what I'm going for using the built in functionality
which would typically also be the most efficient way to solve this problem.
Instead of doing statistical analysis on a numeric field with the date
histogram facet, I just need a count of the top(n) terms, bucketed by date
interval. Can this be done using existing functionality, is this
functionality planned, or does anybody have any suggestions on the most
efficient way to go about this particular problem?
Thanks greatly -