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

  • Did you ever figure how to do this ? – darol100 Mar 11 '15 at 17:34
5
+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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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