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" ..
Please suggest. thanks, Amit Garg Venu Mittal wrote: > > Is your final query in this format ? > > col1:[2009-01-01T00:00:00Z+TO+2009-01-01T23:59:59Z] > > > > ________________________________ > From: dabboo <ag...@sapient.com> > To: solr-user@lucene.apache.org > Sent: Thursday, March 12, 2009 12:27:48 AM > Subject: Date Search with q query parameter > > > Hi, > > I am facing an issue with the date field, I have in my records. > > e.g. I am using q query parameter and passing some string as search > criteria > like "test". While creating query with q parameter, how query forms is: > > column1:test | column2:test | column3:test . ... > > I have one column as date column, which is appended with _dt like > column4_dt. Now, when it creates the query like > > column1:test | column2:test | column3:test | column4_dt:test > > Here it throws an exception saying "Invalid date format". > > Please suggest how I can prevent this. > > Thanks, > Amit Garg > > -- > View this message in context: > http://www.nabble.com/Date-Search-with-q-query-parameter-tp22471072p22471072.html > Sent from the Solr - User mailing list archive at Nabble.com. > > > > -- View this message in context: http://www.nabble.com/Date-Search-with-q-query-parameter-tp22471072p22473029.html Sent from the Solr - User mailing list archive at Nabble.com.