Re: Date faceting per last hour, three days and last week

2011-08-10 Thread O. Klein
I would use facet queries:

facet.query=date:[NOW-1DAY TO NOW]
facet.query=date:[NOW-3DAY TO NOW]
facet.query=date:[NOW-7DAY TO NOW]

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Date-faceting-per-last-hour-three-days-and-last-week-tp3242364p3242574.html
Sent from the Solr - User mailing list archive at Nabble.com.


Date faceting per last hour, three days and last week

2011-08-10 Thread Joan
Hi,

I'm trying date faceting per last 24 hours, three days and last week, but I
don't know how to do it.

I have a DateField and I want to set different ranges, it is posible?

I understand the example from solr
wikibut
I want to do more "gaps" with the same field_date.

How I do this?

Thanks,

Joan