lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Mayer <>
Subject Re: XML nested structure in solr
Date Mon, 09 Feb 2015 12:03:21 GMT
thanks for your answer.Yes I've already checked out the XPathEntityProcessor but it's flatten
my documents.This is quite good working for the first part of my example xml-file, but now
i´m looking for a solution of the "timeinfo" part.
I like to keep the nested structure up. So I search for a solution that if I do a solr search
I'll get a nested structure as result which represent my xml structure from the beginning.

     Jan Høydahl <> schrieb am 12:02 Montag, 9.Februar 2015:


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
Have you checked out XPathEntityProcessor (

Jan Høydahl, search solution architect
Cominvent AS -

> 9. feb. 2015 kl. 11.05 skrev Jens Mayer <>:
> 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.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message