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 Ashish P <as...@gmail.com> on 2009/03/06 02:33:18 UTC
search on date field
I want to search on single date field
e.g. q=creationDate:2009-01-24T15:00:00.000Z&rows=10
But I think the query gets terminated after T15 as ':' ( COLON ) is taken as
termination character.
Any ideas on how to search on single date or for that matter if query data
contains COLON then how to search.
--
View this message in context: http://www.nabble.com/search-on-date-field-tp22364587p22364587.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: search on date field
Posted by Ashish P <as...@gmail.com>.
It works
thanks
Ashish
Shalin Shekhar Mangar wrote:
>
> On Fri, Mar 6, 2009 at 7:03 AM, Ashish P <as...@gmail.com> wrote:
>
>>
>> I want to search on single date field
>> e.g. q=creationDate:2009-01-24T15:00:00.000Z&rows=10
>>
>> But I think the query gets terminated after T15 as ':' ( COLON ) is taken
>> as
>> termination character.
>>
>> Any ideas on how to search on single date or for that matter if query
>> data
>> contains COLON then how to search.
>
>
> You can escape the ':' character by preceding it with a back slash '\'.
> e,g,
>
> q=creationDate:2009-01-24T15\:00\:00.000Z
> --
> Regards,
> Shalin Shekhar Mangar.
>
>
--
View this message in context: http://www.nabble.com/Re%3A-search-on-date-field-tp22365586p22366358.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: search on date field
Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Fri, Mar 6, 2009 at 7:03 AM, Ashish P <as...@gmail.com> wrote:
>
> I want to search on single date field
> e.g. q=creationDate:2009-01-24T15:00:00.000Z&rows=10
>
> But I think the query gets terminated after T15 as ':' ( COLON ) is taken
> as
> termination character.
>
> Any ideas on how to search on single date or for that matter if query data
> contains COLON then how to search.
You can escape the ':' character by preceding it with a back slash '\'. e,g,
q=creationDate:2009-01-24T15\:00\:00.000Z
--
Regards,
Shalin Shekhar Mangar.