Hi,
my question: How did ebay solve this problem?
Take a look to the faceted browsing in the mark twain project:
http://www.marktwainproject.org/xtf/search?keyword=Berlin&style=mtp
http://tinyurl.com/5cvb3c
This solution is open source and from the xtf project (they use lucene).
http://xtf.wiki
I soved that using a single field in the document.
It's content is based on a simple convention.
Say I have 2 docs with values BirthsMarriagesDeath_Deaths_Females and
BirthsMarriagesDeath_Divorces.
Now when I need to get the total count for BirthsMarriagesDeath category, I
run "BirthsMarriages