lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Griffiths <mgriffi...@am-ind.com>
Subject RE: Error indexing "date"
Date Tue, 03 Aug 2010 15:19:25 GMT
What's your XML data look like (for the data)?

Looks like it's not the same date format Solr accepts.

-----Original Message-----
From: Claudio Devecchi [mailto:cdevecchi@gmail.com] 
Sent: Tuesday, August 03, 2010 11:16 AM
To: solr-user@lucene.apache.org
Subject: Error indexing "date"

Hi everybody,

I'm having a error to index a xml file.

I have configured my schema xml with all field names I needed, and created a xml with these
fields, but in field wich I use some date I receive the following error:
On my schema.xml the fields that I need date I configured it with *
type="date"*
On my xml file the date is on this format:* 2010-07-31T13:37:35:999Z*

Jul 28, 2010 11:40:44 PM org.apache.solr.common.SolrException log
*SEVERE: org.apache.solr.common.SolrException: Invalid Date String:''*
        at org.apache.solr.schema.DateField.parseMath(DateField.java:163)
        at
org.apache.solr.schema.TrieDateField.createField(TrieDateField.java:171)
        at
org.apache.solr.schema.SchemaField.createField(SchemaField.java:94)
        at
org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:246)
        at
org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:60)
        at
org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:139)
        at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:69)
        at
org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:54)
        at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
        at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
        at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:619)

Somebody could help me?

Tks!!

--
Claudio Devecchi

Mime
View raw message