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'
        at org.apache.solr.schema.DateField.toInternal(DateField.java:108)
        at
org.apache.solr.schema.FieldType$DefaultAnalyzer$1.next(FieldType.java:298)
        at
org.apache.lucene.queryParser.QueryParser.getFieldQuery(QueryParser.java:437)
        at
org.apache.solr.search.SolrQueryParser.getFieldQuery(SolrQueryParser.java:78)
        at
org.apache.lucene.queryParser.QueryParser.Term(QueryParser.java:1092)
        at
org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:979)
        at
org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:907)
        at
org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:896)
        at
org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:146)

Am I missing anything ?

Thanks,
Monica.


Daniel Andersson-5 wrote:
> 
> 
> On Mar 5, 2008, at 11:08 PM, Chris Hostetter wrote:
> 
>> 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 coming from a
>> previously indexed doc.  To work arround this you may need to reindex
>> all of your docs 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.

Reply via email to