I have an xml which looks something like as below:
<info>
<metadata>
<topic>ww2</topic>
<subject>history</subject>
</metadata>
<information>
<catalogs isreq="1" schema_version="1.0.0" >
<catalog group="1" part_of_sub="N">
<country>FR</country>
<year format="yyyy-mm-dd">1885-11-02</year >
</category_definition>
<catalog group="1" part_of_sub="Y">
<country>GR</country>
<year format="yyyy-mm-dd">1885-11-02</year >
</category_definition>
</catalogs>
</information>
</info>
I want to index this xml without flattening it. I did saw childDocuments
getting used for indexing complex json [referring to this http://yonik.com/solr-nested-objects/ ]. I am not really sure how to use this for xml document?