Hey, could you please give me an example how I can store the original xml? And do you know an existing way how I can import the xml with parent/childrens without using solrJ e.g. DataImportHandler?
Jan Høydahl <jan....@cominvent.com> schrieb am 13:58 Montag, 9.Februar 2015: Hi, By storing your original XML in a string field, e.g. <field name=“xml” type=“string” stored=“true” indexed=“false” />then you are able to ask for the original XML back, even if you queried in other fields in the document. Regarding the timeinfo query, you may need to structure that data in a way that is more easily searchable. Here you may find child documents useful to truly support indexing multiple opening hour spans. -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com 9. feb. 2015 kl. 13.03 skrev Jens Mayer <mjen...@yahoo.com>: Hey, 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 <jan....@cominvent.com> schrieb am 12:02 Montag, 9.Februar 2015: 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.