lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abhayd <ajdabhol...@hotmail.com>
Subject Re: dih fetching but not adding records to index
Date Sat, 30 Jul 2011 01:50:15 GMT
quick question

if i want to just load document with id=2 how would that work?

I tried xpath expression that works with xpath tools but not in solr. How
would i do this?

<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=2]/id"/>
            </entity>
        </entity>
    </document>
</dataConfig>

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

Mime
View raw message