You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Scott Derrick <sc...@tnstaafl.net> on 2021/10/25 20:30:01 UTC

XPathEntityProcessor

Trying to figure out why the xpath processor is only processing on entity when there are multiple entities.

I have the following in my config file

        <entity name="places"
           dataSource="myfilereader"
           processor="XPathEntityProcessor"
           url="${jcurrent.fileAbsolutePath}"
           stream="false"
           forEach="/TEI/text/body"
           xsl="xslt/doc.xsl"
           >
           <field column="places" xpath="/TEI/text/body//placeName" flatten="true"/>
        </entity>

There are multiple entities at the xpath="/TEI/text/body//placeName"

but only the last is stored and searchable?

thanks,

Scott