lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Unparseable date
Date Wed, 12 Mar 2008 00:57:38 GMT
: I indexed my docs with field : <field
: name="order_dt">1995-12-31T23:59:59.000Z</field>
: But when i try to search on that field : order_dt:1995-12-31T23:59:59.000Z ,
: I get an exception :
: Mar 11, 2008 4:13:55 PM org.apache.solr.core.SolrException log
: SEVERE: org.apache.solr.core.SolrException: Invalid Date
: String:'1995-12-31T23'

":" is a special character for the query parser, so it either needs to be 
escaped or the date needs to be quoted...

	order_dt:"1995-12-31T23:59:59.000Z"

this isn't something most people typically need to worry about, because 
dates are typically only queried using ranges...

	order_dt:[1995-12-31T23:59:59.000Z TO *]



-Hoss


Mime
View raw message