On Tue, 2013-01-15 at 18:02 +0100, Nicholas Ding wrote: > I'm thinking store hierachical data structure on Solr. I know I have to > flatten the structure in a form like A_B_C, but it is possible to extend > Solr to support hierachical data?
You need to be more specific here. What is it you're trying to do? If you just want to search and retrieve, you can index "A/B/C" as a StrField. Searching for all data under A/B is done with the prefix query "myfield:A/B/*". If you want hierarchical faceting, there are different solutions, ranging from clever indexing to patching Solr: https://wiki.apache.org/solr/HierarchicalFaceting Regards, Toke Eskildsen