lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "vrparekh@gmail.com" <vrpar...@gmail.com>
Subject xpathentityprocessor with flattern true
Date Fri, 06 Jan 2012 14:15:41 GMT
Hello all,

i want to get whole xmldata into one field, for that i am using
xpathentityprocessor with flattern=true
but still it doesn't work as expected.

e.g.  sample  xml is        <root><doc>abc</doc><part><id>abc</id>
                                                                 
<id>bcd</id>
                                                                 
<id>def</id>
                                                         </part></root>


main part i want is i want all "id" nodes into single field

 <entity name="x" onError="abort"  processor="XPathEntityProcessor"
flatten="true"  forEach="/root/part/id" url="${myfilepath}" dataSource="FD">
                     <field column="CommonIDs" xpath="/root/part/id" />
              </entity>

CommonIDs is single valued field, should contain "<id>abc</id>
                                                                 
<id>bcd</id>
                                                                 
<id>def</id>" if it takes root node also it will also fine for me.

please help me to solve this problem,


Thanks
Vishal Parekh


--
View this message in context: http://lucene.472066.n3.nabble.com/xpathentityprocessor-with-flattern-true-tp3637928p3637928.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message