I'm currently running solr 4.0 alpha with manifoldCF v1.1 dev
Manifold is sending solr the datetime as milliseconds expired after
1-1-1970.
I've tried setting several date.formats in the extraction handler but I
always get this error: 
and the manifoldcf crawl aborts.
SolrCore        org.apache.solr.common.SolrException: Invalid Date
String:'1347383610000' at
org.apache.solr.schema.DateField.parseMath(DateField.java:174) at
org.apache.solr.schema.TrieField.createField(TrieField.java:540)

here's my extraction handler:
requestHandler name="/update/extract"
class="org.apache.solr.handler.extraction.ExtractingRequestHandler">
    <lst name="defaults">
          <str name="fmap.content">text</str>
          <str name="fmap.title">solr.title</str>
          <str name="fmap.name">solr.name</str>
          <str name="link">link</str>
          <str name="fmap.pubdate">pubdate</str>
          <str name="summary">summary</str>
          <str name="description">comments</str>
          <str name="published">published</str>
          
      <str name="fmap.Last-Modified">last_modified</str>
      <str name="uprefix">attr_</str>
          <str name="lowernames">true</str>
          <str name="fmap.div">ignored_</str>
    </lst>
        <lst name="date.formats">         
      <str>yyyy-MM-dd</str>
      <str>yyyy-MM-dd'T'HH:mm:ss.SSS'Z'</str>
    </lst>
 
    </lst>-->
  </requestHandler>


here's pubdate in the schema
<field name="pubdate" type="date" indexed="true" stored="true"
multiValued="true"/>

the dates are already in UTC time they're just in milliseconds...

What am I doing wrong?




--
View this message in context: 
http://lucene.472066.n3.nabble.com/solr-invalid-date-string-tp4031661.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to