lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abhayd <>
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?

    <dataSource type="FileDataSource" />
        <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"/>

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message