|  dataSource="null"

I think this should not be here. The datasource should default to the 
<dataSource> listing. And 'rootEntity=true' should be in the 
XPathEntityProcessor block, because you are adding each file as one document.

----- Original Message -----
| From: "Spadez" <james_will...@hotmail.com>
| To: solr-user@lucene.apache.org
| Sent: Sunday, November 18, 2012 7:34:34 AM
| Subject: Re: Solr Delta Import Handler not working
| 
| Update! Thank you to Lance for the help. Based on your suggestion I
| have
| fixed up a few things.
| 
| *My Dataconfig now has the filename pattern fixed and root
| entity=true*
| /<dataConfig>
|   <dataSource type="FileDataSource" />
|   <document>
|     <entity
|       name="document"
|       processor="FileListEntityProcessor"
|       baseDir="/var/lib/employ"
|       fileName="^.*\.xml$"
|       recursive="false"
|       rootEntity="true"
|       dataSource="null">
|       <entity
|         processor="XPathEntityProcessor"
|         url="${document.fileAbsolutePath}"
|         useSolrAddSchema="true"
|         stream="true">
|       </entity>
|     </entity>
|   </document>
| </dataConfig>/
| 
| *My data.xml has a corrected date format with "T":*
| /<add>
| <doc>
|         <field name="id">123</field>
|       <field name="title">Delta Import 2</field>
|         <field name="description">This is my long description</field>
|       <field name="truncated_description">This is</field>
| 
|         <field name="company">Google</field>
|         <field name="location_name">England</field>
|         <field name="date">2007-12-31T22:29:59</field>
|         <field name="source">Google</field>
|         <field name="url">www.google.com</field>
|         <field name="latlng">45.17614,45.17614</field>
| </doc>
| </add>/
| 
| 
| 
| --
| View this message in context:
| 
http://lucene.472066.n3.nabble.com/Solr-Delta-Import-Handler-not-working-tp4020897p4020925.html
| Sent from the Solr - User mailing list archive at Nabble.com.
| 

Reply via email to