user3575776
user3575776

Reputation: 39

How to use facet query in CollapsingQParserPlugin in solr?

I want to generate facets on the uncollapsed set for a particular facet. Is there any solr query to achieve these functionality?

Upvotes: 3

Views: 509

Answers (1)

ohmu
ohmu

Reputation: 19780

This can be easily achieved by tagging the collapse filter, and then excluding the that tag in the particular facet. Say you want to collapse by group and facet on widget, then you could do:

?q=*:*
&fq={!collapse field=group tag=collapse}
&facet=true
&facet.field={!ex=collapse}widget

Upvotes: 1

Related Questions