Hi,

Date range query is working fine for me. This is the query I entered.

q=productPublicationDate_product_dt:1993-02-01T12:00:00Z&version=2.2&start=0&rows=10&indent=on&qt=dismaxrequest

It threw this exception:

type Status report

message Invalid Date String:'1993-02-01t12'

description The request sent by the client was syntactically incorrect
(Invalid Date String:'1993-02-01t12').


thanks,
Amit Garg


Shalin Shekhar Mangar wrote:
> 
> On Thu, Mar 12, 2009 at 4:39 PM, dabboo <ag...@sapient.com> wrote:
> 
>>
>> Hi,
>>
>> I am able to rectify that exception but now what I am looking for is :
>> How
>> I
>> can pass the value to the date field to search for the record of a
>> specific
>> date value. e.g. I want to retrieve all the records of Jan 01, 2007. How
>> I
>> will pass the value with the column name. If I pass the value it throws
>> an
>> exception saying that "it is expecting TO" ..
>>
> 
> The format for range search is your_date_field:[minDate TO maxDate] and
> for
> a normal term query it is your_date_field:the_date
> 
> Each of the dates should be in the format described in the example
> schema.xml
> -- 
> Regards,
> Shalin Shekhar Mangar.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Date-Search-with-q-query-parameter-tp22471072p22474608.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to