with those optional milliseconds.
Ah, re-indexing now. Thanks for your help!
/ d
--
View this message in context:
http://www.nabble.com/Unparseable-date-tp15854401p15994506.html
Sent from the Solr - User mailing list archive at Nabble.com.
: I indexed my docs with field : field
: name=order_dt1995-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:
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
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
: 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
: java.lang.RuntimeException: java.text.ParseException:
Unparseable date: 2008-02-12T15:02:06Z
at org.apache.solr.schema.DateField.toObject(DateField.java:
173)
Seems to imply that that's all it's getting..
Cheers,
Daniel
On Mar 5, 2008, at 5:40 PM, Ryan Grange wrote:
Solr does use 24 hour dates
: 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
: 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
On Mar 5, 2008, at 10:57 PM, Chris Hostetter wrote:
: 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
: So if I add :00 to every time, it should be fine?
: ie
: 2008-02-12T15:02:06:00Z instead of 2008-02-12T15:02:06Z
It's .000 not :00 ... 2008-02-12T15:02:06.000Z
but like i said: that stack trace is odd, the time doesn't seem like it
actually comes from any query params, it looks like it's
10 matches
Mail list logo