lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: How to get Facet results for date field in groups
Date Sat, 15 Sep 2012 13:20:04 GMT
I assume you're talking about facets here. Use a series of
facet queries, and use the "key" trick. See:
http://wiki.apache.org/solr/SimpleFacetParameters#key_:_Changing_the_output_key

Best
Erick

On Sat, Sep 15, 2012 at 4:56 AM, Anupam Bhattacharya
<anupamb82@gmail.com> wrote:
> How to fetch results for a indexed field of date format in the facet
> section as a group in the below format from SOLR ?
>
> Today's (10)
> Last 7 Days (20)
> Yesterday (30)
> Thursday (40)
> Wednesday (50)
> Tuesday (60)
> Monday (70)
> Sunday (80)
> last Week (90)
> Two Week Ago (100)
> Last Month (110)
> Two Months Ago (200)
> Three Months Ago (300)
> May (150)
> April (100)
> March (70)
> Febraury (60)
> Januaury (50)
> Last Year (40)
>
> Regards
> Anupam Bhattacharya

Mime
View raw message