lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Unparseable date
Date Wed, 05 Mar 2008 21:46:52 GMT
: According to the schema.xml-file "The format for this date field is of the
: form 1995-12-31T23:59:59Z".
: Yet I'm getting the following error on SOME queries:
: Mar 5, 2008 10:32:53 AM org.apache.solr.common.SolrException log
: SEVERE: java.lang.RuntimeException: java.text.ParseException: Unparseable
: date: "2008-02-12T15:02:06Z"
:         at org.apache.solr.schema.DateField.toObject(
:         at org.apache.solr.schema.DateField.toObject(
:         at org.apache.solr.update.DocumentBuilder.loadStoredFields
: (
:         at
: oc(
:         at
: ances(

Hmmm... this seems related to SOLR-470 in the sense that it has to do with 
reusing the same SimpleDateParser for more things then it was ment for ... 
looking at the current code for DateField.toObject(Fieldable) it seems 
inheriently broken, attempting to parse a string right after concating 'Z' 
on the end even though the parser expects the Z to already be gone -- i'm 
not sure how this could path could *ever* work, regardless of the input.


just to clarify, this stack trace doesn't look like you are actually doing 
a "query", it seems like it's happening during an "update" of some kind 
(using DocumentBuilder.loadStoredFields to populate a SolrDocument from a 
Document) .. can you elaborate on what you are doing here?


View raw message