Hello,

My Commerce product entities are setup with a taxonomy term reference for specific options (like color, size and material of the products). I've got these options structured within the taxonomy vocabulary like

Size
--Small
--Medium
--Large
Color
--Blue
--Red

etc.

I would like to be able to use this hierarchy information for use as facets, so that the parent of a term is the facet. I just can't seem to figure out how to realize it. Is this possible with the Search API as is or with minimal programming? If so, can you point me in the right direction?

Thanks!

Comments

drunken monkey’s picture

Status: Active » Fixed
Issue tags: -taxonomy, -hierachy, -facet

This will be possible when #1182614: Integrate with Facet API is committed—probably in the next days. You can help by reviewing/testing the existing patch (which is almost done, and already has the feature you are looking for).

drunken monkey’s picture

Oh, and you'll need to activate the "Index hierarchy" data alteration and tell it to also index the parent terms for the field in question.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

knalstaaf’s picture

Issue summary: View changes

"Index hierarchy" can be found under the "Filter" tab of the index configuration btw (for people looking for that option). Then re-index everything.