I am wondering if there's a way to achieve what I want. I did see a post similar to this but without any answers. Solr Facet Query
Basically, I have a field named msg_type that can have only three values log, warnings and errors. What I want is a count of each of these three categories per month starting from one year before.
E.g.
July 2012: Logs = 20, Warnings = 30, Errors = 40
August 2012 Logs = 22, Warnings = 32, Errors = 50
...
Can someone let me know the query I should use for this?
Thanks