I have an event table which has start date and end date like this
==============================================
id | name | start_date | end_date
==============================================
1 | Test Event 1 | 2011-11-20 | 2011-12-20
----------------------------------------------
2 | My Event 2 | 2011-12-05 | 2011-12-26
----------------------------------------------
3 | My Event 3 | 2012-12-26 | 2012-01-11
----------------------------------------------
Now I want to have a solr facet which looks like this and i can't seem to get the params right.
==================
Dates
------------------
Today [2]
This Week [2]
This Month [2]
Next Month [1]
Please note that the facet has to consider both start date and end date. Sort of gouping ?
What should be the faceting parameters for this ?
Thanks in advance for any help.