This is very difficult to do with Solr, since it does not support hierarchial data directly.
I would recommend a database that handles XML natively. You can try eXist (open source) or MarkLogic (commercial, I work there). wunder Walter Underwood Lead Engineer, MarkLogic On Mar 4, 2011, at 10:27 AM, Andriy Kurochenko wrote: > Hello, > > I need to index plenty of xml files in tree directory structure with > preservation of elements names, elements attributes and values. So i can > for example search for occurrence of value of element or presence of > element with given name whose attribute with given name has given value. > I also need to distinguish on which level of structure to search. Depth > of structure is known before indexing and xml files on each level have > same root element, but can differ in others elements, which may be nested. > > Do I have to parse structure on my own and pass it to Solr (imho not so > effective)? Or how else can I afford aforementioned functionality with > least effort? > Thanks in advance! > > Regards, > Andriy