hi 
I m trying to load data into solr index from a xml file using dih

my promotions.xml file
------------------
<add>
        <doc>
                <field name="id">3</field>
        </doc>
        <doc>
                <field name="id">4</field>
        </doc>  
</add>
---------------------
schema.xml has
   <field name="id" type="string" indexed="true" stored="true"
omitNorms="true"/>

and dih config file is as follows
-----------------------------
<dataConfig>
    <dataSource type="FileDataSource" />
    <document>
        <entity name="f" processor="FileListEntityProcessor"
baseDir="c:\temp" fileName="promotions.xml" 
                recursive="false" rootEntity="false" dataSource="null">
            <entity name="x" processor="XPathEntityProcessor"
forEach="/add/doc" url="${f.fileAbsolutePath}" pk="id">
                <field column="id" xpath="/add/doc/id"/>
            </entity>
        </entity>
    </document>
</dataConfig>

After full index load i get message

Indexing completed. Added/Updated: 0 documents. Deleted 0 documents.
Requests: 0, Fetched: 1, Skipped: 0, Processed: 0

And nothing is added to solr iindex. Any idea whats happening? I dont see
any error messages either


--
View this message in context: 
http://lucene.472066.n3.nabble.com/dih-fetching-but-not-adding-records-to-index-tp3189438p3189438.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to