On Fri, Jul 17, 2009 at 5:53 AM, Antonio Eggberg <antonio_eggb...@yahoo.se>wrote:
> > Hi, > > every solr document I have a creation date which is the default time stamp > "NOW". What I like to know how can I have facets like the following: > > Past 24 Hours (3) > Past 7 days (23) > Past 15 days (33) > Past 30 days (59) > > Is this possible? i.e. range query as facet? > Yes, you can use facet.query and pass a range facet.query=created:[NOW/DAY - NOW/DAY-1DAY]&facet.query=created:[NOW/DAY - NOW/DAY-7DAYS] and so on -- Regards, Shalin Shekhar Mangar.