You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Raju444us <gu...@gmail.com> on 2009/04/23 00:16:17 UTC
Re: Faceted Dates
In the example on the wiki that 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
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
Thanks,
Raju
Bertrand L. Delacretaz wrote:
>
> On 1/9/07, Ryan McKinley <ry...@gmail.com> wrote:
>> ...I would like to use faceted browsing to group documents by year,
>> month, and day. I can think of a few ways to do this, but I'd like to
>> see what folks think before i start down the wrong track....
>
> Dunno if you've already read it, but I found this page interesting
> when it comes to date queries, it might give you some additional
> ideas:
>
> http://wiki.apache.org/jakarta-lucene/LargeScaleDateRangeProcessing
>
> -Bertrand
>
>
--
View this message in context: http://www.nabble.com/Faceted-Dates-tp8232159p23177254.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Faceted Dates
Posted by Otis Gospodnetic <ot...@yahoo.com>.
I don't have Solr running here to try, but have you tried simply replacing "DAY" with "MONTH"?
Who knows, maybe it works! :)
Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
----- Original Message ----
> From: Raju444us <gu...@gmail.com>
> To: solr-user@lucene.apache.org
> Sent: Wednesday, April 22, 2009 6:16:17 PM
> Subject: Re: Faceted Dates
>
>
> In the example on the wiki that 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
>
>
> 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
>
> Thanks,
> Raju
>
>
> Bertrand L. Delacretaz wrote:
> >
> > On 1/9/07, Ryan McKinley wrote:
> >> ...I would like to use faceted browsing to group documents by year,
> >> month, and day. I can think of a few ways to do this, but I'd like to
> >> see what folks think before i start down the wrong track....
> >
> > Dunno if you've already read it, but I found this page interesting
> > when it comes to date queries, it might give you some additional
> > ideas:
> >
> > http://wiki.apache.org/jakarta-lucene/LargeScaleDateRangeProcessing
> >
> > -Bertrand
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Faceted-Dates-tp8232159p23177254.html
> Sent from the Solr - User mailing list archive at Nabble.com.