On Thu, Apr 23, 2009 at 2:36 AM, Raju444us <ngudipa...@cormineid.com> wrote:

>
> In the example on the wiki at gives the facet counts for date per day.How
> should the query look like to get date facets by month.
>
>
>
> http://wiki.apache.org/solr/SimpleFacetParameters#head-068dc96b0dac1cfc7264fe85528d7df5bf391acd
>
>
> Here is the sample query for day level facet counts.
>
>
> http://localhost:8983/solr/select/?q=*:*&rows=0&facet=true&facet.date=timestamp&facet.date.start=NOW/DAY-5DAYS&facet.date.end=NOW/DAY%2B1DAY&facet.date.gap=%2B1DAY
>

You can use facet.date.gap=+1MONTH

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to