Using more than one key_field for terms_stats filter

Say I have an index containing page view data on my site with country
information, per page in my sight.
To see how many page views I had per day, I can do the following query:

{
"size": 0,
"facets": {
"daily": {
"terms_stats": {
"key_field": "date",
"value_field": "views"
}
}
}
}

To see how many page view I had per country, I can do the following query:

{
"size": 0,
"facets": {
"daily": {
"terms_stats": {
"key_field": "country",
"value_field": "views"
}
}
}
}

Now say I want to make a query to see how many page views I had on my site *per
*country *per *day, how do I do that?

I'd like the result to look something like this:

"2013-05-25", "US", 235642
"2013-05-26", "US", 325219
"2013-05-25", "DE", 125648
"2013-05-26", "DE", 153942

etc..

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.