On 27 February 2015 at 16:11, Vishal Swaroop <vishal....@gmail.com> wrote: > I am able to index XML with same "name" element but in different XPATH by > using XPathEntityProcessor "forEach" (e.g. below) > > Just wondering if there is better way to handle this xml format.
DIH's XML parser is rather limited and literally-minded. You could instead pre-process XML with XSLT: https://cwiki.apache.org/confluence/display/solr/Uploading+Data+with+Index+Handlers#UploadingDatawithIndexHandlers-UsingXSLTtoTransformXMLIndexUpdates Or looking into something like SIREn: http://siren.solutions/siren/overview/ Regards, Alex. ---- Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter: http://www.solr-start.com/