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 chem leakhina <ch...@gmail.com> on 2009/06/10 08:28:46 UTC
How to search date in Solr
Hi,
Could you tell me how to make query to search Date in Solr with these
conditions:
Before, After, Between, All
Could you please write some example for me?
Regards,
LEE
Re: How to search date in Solr
Posted by chem leakhina <ch...@gmail.com>.
Thanks Otis
On Wed, Jun 10, 2009 at 1:32 PM, Otis Gospodnetic <
otis_gospodnetic@yahoo.com> wrote:
>
> Hello,
>
> These are all done with range queries. They tend to look like this:
>
> &q=add_date:[BeginDateHere TO EndDateHere]
>
>
> You can use * for either BeginDateHere or EndDateHere to get the
> "before/after" effect.
>
> "All" is just q=*:*
>
> Otis
> --
> Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
>
>
>
> ----- Original Message ----
> > From: chem leakhina <ch...@gmail.com>
> > To: solr-user@lucene.apache.org
> > Sent: Wednesday, June 10, 2009 2:28:46 AM
> > Subject: How to search date in Solr
> >
> > Hi,
> > Could you tell me how to make query to search Date in Solr with these
> > conditions:
> >
> > Before, After, Between, All
> >
> > Could you please write some example for me?
> >
> > Regards,
> > LEE
>
>
Re: How to search date in Solr
Posted by Otis Gospodnetic <ot...@yahoo.com>.
Hello,
These are all done with range queries. They tend to look like this:
&q=add_date:[BeginDateHere TO EndDateHere]
You can use * for either BeginDateHere or EndDateHere to get the "before/after" effect.
"All" is just q=*:*
Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
----- Original Message ----
> From: chem leakhina <ch...@gmail.com>
> To: solr-user@lucene.apache.org
> Sent: Wednesday, June 10, 2009 2:28:46 AM
> Subject: How to search date in Solr
>
> Hi,
> Could you tell me how to make query to search Date in Solr with these
> conditions:
>
> Before, After, Between, All
>
> Could you please write some example for me?
>
> Regards,
> LEE