Hi The most common approach is to flatten the document and map to chosen schema fields in Solr. You could also store the original XML in a STORED field for the purpose of returning to the client. Have you checked out XPathEntityProcessor (https://cwiki.apache.org/confluence/display/solr/Uploading+Structured+Data+Store+Data+with+the+Data+Import+Handler)?
-- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com > 9. feb. 2015 kl. 11.05 skrev Jens Mayer <mjen...@yahoo.com.INVALID>: > > Hey @all, > I have a problem with nested documentsin solr. > I like to import avery big XML file which contains a nested structure: > <data> > <shop> > <stores> > <code>aa</code> > <zipCode>a</zipCode> > <city>a</city> > <district>a</district> > </stores> > <timeinfo> > <type>open</type> > <timeinfo> > <from>00:00</from> > <to>00:00</to> > <weekday>sat</weekday> > </timeinfo> > </timeinfo> > </shop> > </data> > I like to pass offthe whole nested structure if I search in solr for one of > thisdocuments. > My search revealedthat the DataImportHandler can't support the import of > nestedDocuments. > So my ask is, how Ican import nested documents and how I can portray the > structure inschema.xml? > Thanks in advanced.