You will have to URL encode the string correctly and supply date in format
Solr expects. Please check this: http://wiki.apache.org/solr/SolrQuerySyntax

On Fri, Jan 9, 2009 at 12:21 PM, Rayudu <avsrit2...@yahoo.co.in> wrote:

>
> Hi All,
>      I have a field with is solr.DateField in my schema file. If I want to
> get the docs. for a given date for eg: get all the docs. whose date value
> is
> 2009-01-09 then how can I query my index. As solr's date format is
> yyyy-mm-ddThh:mm:ss,
>
>             if I give the date as 2009-01-09T00:00:00Z it is thorwing an
> exception "solr.SolrException: HTTP code=400, reason=Invalid Date
> String:'2009-01-09T00' " .
>                         if I give the date as 2009-01-09 it is thorwing an
> exception , solr.SolrException: HTTP code=400, reason=Invalid Date
> String:'2009-01-09'
>
> Thanks,
> Rayudu.
> --
> View this message in context:
> http://www.nabble.com/Querying-Solr-Index-for-date-fields-tp21367097p21367097.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>


-- 
Regards,
Akshay Ukey.

Reply via email to