hi I have a xml doc whichi would like to index using xpath entity processor. <add> <doc> <id>1</id> <details>xyz</details> </doc> <doc> <id>2</id> <details>xyz2</details> </doc> </add>
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. <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> Any help how i can do this? -- View this message in context: http://lucene.472066.n3.nabble.com/xpath-expression-not-working-tp3218133p3218133.html Sent from the Solr - User mailing list archive at Nabble.com.