On Mar 5, 2008, at 10:46 PM, Chris Hostetter wrote:

: 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 (DateField.java:173) : at org.apache.solr.schema.DateField.toObject (DateField.java:83)
:         at org.apache.solr.update.DocumentBuilder.loadStoredFields
: (DocumentBuilder.java:285)
:         at
: com.pjaol.search.solr.component.LocalSolrQueryComponent.luceneDocToSol rD
: oc(LocalSolrQueryComponent.java:403)
:         at
: com.pjaol.search.solr.component.LocalSolrQueryComponent.mergeResultsDi st
: ances(LocalSolrQueryComponent.java:363)

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.

ugh.

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?

It is a query, which is run through LocalSolr/LocalLucene

CC'ing them in, since it seems you're suggesting that they might be re-using something incorrectly.. ?

Cheers,
Daniel

Reply via email to