Hey all,

I am doing a search on hierarchical data, and I have a hard time
getting my head around the following problem.

I want a result as follows, in one single query only:

USA (3)
> California (2)
> Arizona (1)
Europe (4)
> Norway (3)
>> Oslo (3)
> Sweden (1)

How it looks in the XML/JSON response is not really important, this is
more a presentation issue. I guess I could store the values "USA",
"USA/California", "Europe/Norway/Oslo" as strings for each document,
and do some JavaScript-ing to show the hierarchies appropriately. When
a specific item in the facet is selected, for example "Norway", Solr
could be queries with a filter query on "Europe/Norway*"?

Do anyone have some experiences they could please share with me?

I have tried out SOLR-64, and it gives me the results I look for.
However, I do not have the opportunity to use a patch in the
production environment ...

--
Thanks,
Mats Bolstad

Reply via email to