Score:0

How to limit facets options to specific terms in taxonomy

tr flag

I have a Drupal 9.3 site with Search API, Database Search and Facets modules active.

The site also has a taxonomy with hierarchy. I've built a working View and added a Facet to filter items by that taxonomy. I can enable the "Use Hierarchy" checkbox in the Facet's settings. (I've also turned on the hierarchy processor in Search API).

This gives me a working filter where I can check a parent taxonomy item, then select from its children.

But, what I want is to limit the Facet filter to ONLY show specific predetermined terms. I'm looking for exactly the same ability as within a view, by creating a datasource filter and using the checkbox to "Limit list to selected items" in the vocabulary.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.