Score:0

Split taxonomy terms in two facet filters

it flag

English is not my first language, so please be patient.

I'd like to ask for assistance to split my taxonomy terms in two facet filters.

Context:

  • Drupal Core v9.2.6
  • Acquia Search v3.0.5
  • Acquia Connector v3.0.4
  • Search API v8.x-1.21
  • Search API Solr v4.2.1
  • Search API Pages v8.x-1.0-beta3
  • Search API Solr Admin v4.2.1
  • Facets v8.x-1.8

I have configured correctly the listed modules and set a functional Search feature for an Acquia site. Now I need to make some editions to our Facet filters.

I have a taxonomy for recipes that's listed like:

  1. Cake
  • Red Velvet
  • Milkyway
  • Pineapple
  1. Muffin
  • Sweet
  • Choco-party
  1. Milkshake
  • Marshmallow
  • M&M's
  • Almond milk

I need to set two facet filters (one dependent on the other) where the user can filter first by dessert type (parent taxonomy), then by flavor (children taxonomy).

Search Results View

Right now my facet filter only displays all the desserts (parent taxonomy) in a single dropdown, any ideas on how to split them?

Please let me know if additional details are required.

References:

https://drupalize.me/tutorial/create-facet?p=3319

https://drupalize.me/tutorial/create-facet-using-taxonomy?p=3319

cn flag
Is this question "How do I split the taxonomy terms in a facet?" or "How do I use Solr locally with Acquia Dev Desktop?" Those are totally different questions.
Elber CM avatar
it flag
Thank you @PatrickKenny, you are right, I'll split the information to make two separate questions.
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.