I am trying to configure the data-config.xml using the XPathEntityProcessor
to index nested xml entities such as the following:
<study>
 <intervention>
    <intervention_type>Drug</intervention_type>
    <intervention_name>fentanyl sublingual spray</intervention_name>
  </intervention>
  <intervention>
    <intervention_type>Other</intervention_type>
    <intervention_name>questionnaire administration</intervention_name>
  </intervention>
</study>

The data-config.xml looks like this:
<entity name="intervention" url="${studiesdir.fileAbsolutePath}"
processor="XPathEntityProcessor" forEach="/clinical_study/intervention/">
<field column="intervention_type_t"  multiValued="true"  
xpath="/clinical_study/intervention/intervention_type" />  
<field column="intervention_name_t"   multiValued="true"     
xpath="/clinical_study/intervention/intervention_name" />
</entity>

but it only indexes the first occurrence of  intervention_type_t and
intervention_name_t and they are placed as children of root entity instead
of being children of intervention.

I would appreciate your help!

Thanks in advance,

Aurelia
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/DIH-XML-Entity-Help-Newbie-tp1592723p1592723.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to