the solr date format is a bit more strict (ISO 8601)

yyyy-MM-dd'T'HH:mm:ss.SSS

there is talk of a more lienent date parser, but nothing exists yet..

The format you suggest would be ok if you index your dates as a string '20070101' and then use a range query.




Stu Hood wrote:
Hello,

Searching by date ranges doesn't seem to work in the example Solr install. A query like `timestamp:[20070101 TO 20080101]` returns:

*message* _Invalid Date String:'20070101'_

*description* _The request sent by the client was syntactically incorrect (Invalid Date String:'20070101')._

That query should be valid according to http://lucene.apache.org/java/docs/queryparsersyntax.html#Range%20Searches

Any ideas?

Stu Hood
Webmail.us
"You manage your business. We'll manage your email."®

Reply via email to