Search code examples
solrfiltertagging

Unable to use Tagging and excluding Filters


I have 2 Facets color and shape.

Color: Red Green yellow

Shape: Circle Square

Now I want to use Tagging and excluding Filters for both these Facet. So if I select "Red" the green and yellow should be present in facet list and all shapes as well

I read: http://wiki.apache.org/solr/SimpleFacetParameters#Tagging_and_excluding_Filters

But unable to implement it in my setup.


Solution

  • This worked fine for me.

    select?q={!tag=dt1}color:red&fq={!tag=dt2}shape:*&facet=true&facet.field={!ex=dt1}color&facet.field={!ex=dt2}shape