Hi Ian,

I believe you may be able to use a bunch of facet.query parameters, something 
like this:

facet.query=yourfield:[NOW-1DAY TO NOW]
facet.query=yourfield:[NOW-2DAY to NOW-1DAY]
...
and so on.

-sujit

On May 3, 2012, at 10:41 PM, Ian Holsman wrote:

> Hi.
> 
> I would like to be able to do a facet on a date field, but with different 
> ranges (in a single query).
> 
> for example. I would like to show
> 
> #documents by day for the last week - 
> #documents by week for the last couple of months
> #documents by year for the last several years.
> 
> is there a way to do this without hitting solr 3 times?
> 
> 
> thanks
> Ian

Reply via email to