6

I am using facet filter to filter views values . I have a taxonomy term using widget type [Simple Hierarchial Select][1] . I want to be able to filter parent and child terms both in facet filter block

Tax A
-- Tax A child
---- Tax A child of child

I want to use each one of the above as a filter in the facet filter block

How Can I achieve it?
I have ticked 'index hierarchy ' but it just shows the deepest term e.g. "Tax A child of child"

http://example.com/admin/config/search/search_api/index/*server name*/workflow

enter image description here

1
  • Did you ever figure how to do this ? Commented Mar 11, 2015 at 17:34

1 Answer 1

6
+50

I'm presuming you are using FacetAPI and Search API Solr.

You need to add some settings to the facet itself at Search API > Index > Facets > [Taxonomy name]: http://example.com/admin/config/search/facetapi/[indexname]/block/field_[taxonomyname]/edit

You'll need to

  1. Expand the hierarchy
  2. Treat parent items as individual facet items
  3. Don't flatten hierarchy
  4. and minimum count zero (ie: show even when empty)

Expand hierarchy Treat parent items as individual facet items Don't flatten hierarchy and minimum count zero

2
  • I would give you the bounty because your answer seem very accurate. However, I have not test this out because I find another solution. Commented Mar 18, 2015 at 2:29
  • @darol100, could you please share the solution you have found? Commented May 16, 2015 at 13:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.