The XPath field in the XPathEntityResolver should use the resolver to replace 
possible tokens
---------------------------------------------------------------------------------------------

                 Key: SOLR-1391
                 URL: https://issues.apache.org/jira/browse/SOLR-1391
             Project: Solr
          Issue Type: Improvement
          Components: contrib - DataImportHandler
    Affects Versions: 1.4
            Reporter: Abdul Chaudhry


If you have a data-import configuration that nests an entity that includes an 
XPath with an XPathEntityProcessor - like so :- 

<entity name="a" ...etc
  datasource="
  <field column="xpath_value"/>

  <entity name="b" 
        dataSource="filereader"
        processor="XPathEntityProcessor"
        ... etc />

      <field column="my_field" xpath="${a.xpath_value}" />
  </entity>

</entity>

This will fail with an error like so

Caused by: java.lang.RuntimeException: xpath must start with '/' : 
${a.xpath_value}

We should allow the xpath to be replaced with the token from entity a



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to