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 dabboo <ag...@sapient.com> on 2009/03/04 08:08:53 UTC
Search with Date field
Hi,
Date search is not happening in solr. I am giving the field name and date
value as the request but it is not returning any value.
Please suggest.
Thanks,
Amit Garg
--
View this message in context: http://www.nabble.com/Search-with-Date-field-tp22324779p22324779.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Search with Date field
Posted by Marc Sturlese <ma...@gmail.com>.
Normally you will need to filer by dates... you can do it in two ways...
http://....fq=date_field[NOW-7DAY TO NOW]
http://...fq=date_field[2007-01-01T21:21:21 TO 2009-01-01T13:13:13]
I strongly recomend you to use /DAY in the first example. The search will be
faster as it is omitting hour-min-sec.
http://....fq=date_field[NOW/DAY-7DAY TO NOW/DAY]
Is this what you where asking for?
solruser wrote:
>
> Can you reply with example of solr request?
>
> Amit
>
> On Mar 3, 2009, at 11:08 PM, dabboo <ag...@sapient.com> wrote:
>
>>
>> Hi,
>>
>> Date search is not happening in solr. I am giving the field name and
>> date
>> value as the request but it is not returning any value.
>>
>> Please suggest.
>>
>> Thanks,
>> Amit Garg
>> --
>> View this message in context:
>> http://www.nabble.com/Search-with-Date-field-tp22324779p22324779.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>>
>
>
--
View this message in context: http://www.nabble.com/Search-with-Date-field-tp22324779p22326871.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Search with Date field
Posted by Solruser <so...@gmail.com>.
Can you reply with example of solr request?
Amit
On Mar 3, 2009, at 11:08 PM, dabboo <ag...@sapient.com> wrote:
>
> Hi,
>
> Date search is not happening in solr. I am giving the field name and
> date
> value as the request but it is not returning any value.
>
> Please suggest.
>
> Thanks,
> Amit Garg
> --
> View this message in context: http://www.nabble.com/Search-with-Date-field-tp22324779p22324779.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>