This is the document I am posting: <?xml version="1.0" encoding="UTF-8"?><add><doc><field name="id">Post 75004824785129473</field><field name="type">Post</field><field name="at_d">2011-05-30T01:05:18Z</field><field name="state_s">New York</field><field name="country_s">United States</field><field name="data_text">hello world!</field></add>
In my schema.xml file I have these date fields, do I need more? <fieldType name="date" class="solr.TrieDateField" omitNorms="true" precisionStep="0" positionIncrementGap="0"/> <fieldType name="tdate" class="solr.TrieDateField" omitNorms="true" precisionStep="6" positionIncrementGap="0"/> <fieldType name="pdate" class="solr.DateField" sortMissingLast="true" omitNorms="true"/> On Fri, Jul 22, 2011 at 5:00 PM, Jason Toy <jason...@gmail.com> wrote: > I haven't modified my schema in the older solr or trunk solr,is it required > to modify my schema to support timestamps? > > > On Fri, Jul 22, 2011 at 4:45 PM, Chris Hostetter <hossman_luc...@fucit.org > > wrote: > >> : In Solr 1.3.1 I am able to store timestamps in my docs so that I query >> them. >> : >> : In trunk when I try to store a doc with a timestamp I get a sever error, >> is >> : there a different way I should store this data or is this a bug? >> >> are you sure your schema has that field defined as a (Trie)DateField ? >> >> Based on the error it looks like it's configured as a "TrieDoubleField" >> ... >> >> : 75004824785129473] Error adding field 'at_d'='2011-05-30T01:05:18Z' >> ... >> : >> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) >> : Caused by: java.lang.NumberFormatException: For input string: >> : "2011-05-30T01:05:18Z" >> : at >> : sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1222) >> : at java.lang.Double.parseDouble(Double.java:510) >> : at >> org.apache.solr.schema.TrieField.createField(TrieField.java:509) >> >> >> -Hoss >> > > > > -- > - sent from my mobile > 6176064373 > > -- - sent from my mobile 6176064373