You could indeed use the faceted-date-histogram with an inlined term facet (with size=0 or 1) to get that information. The faceted dated histogram allows you to first group posting by date and then apply an arbitrary facet to every group.
As Jaap already pointed out, the plugin is not compatible with version 0.90.0 and up of Elasticsearch. Version 0.90.0 came with a complete re-write of the internal in memory data structures that drive the faceting engine. That rewrite delivered a tremendous amount of memory savings so I highly recommend using it. Sadly, it also rendered my plugin to be incompatible and I simply didn't have the time to re-write things. If enough people need it, I might find some time to do it and make a 0.90.X compatible version (dropping other features like the hashed terms facet, which is simply incompatible). Of course, pull requests are welcome :)
About the 1.0 version of ES - we are currently working on a new powerful faceting engine that will allow to do this and much more by allow to nest facets. It will take a couple of month, though, before it's ready.
On Tuesday, June 11, 2013 11:01:35 PM UTC+2, Jaap Taal wrote:
In 1.0 there might be some changes to the facet system that allows to nest facets. I think