Hi David,
It's should be fairly easy to show only unique subjects. I've used
<xsl:for-each-group> to do things like this. I think what you want to end up
generating from the prefilter is:
<subject>Anthropology</subject>
<facet-subject>Humanities::Anthropology</facet-subject>
<facet-subject>Social Sciences::Anthropology</facet-subject>
That way the facets will show as you want, but the subject will only be
listed once. Alternately you could modify the resultFormatter to do the
for-each-group on the display side instead of the indexing side.
--Martin