Backend and Infrastructure

Facets in Search for Drupal 8, 9, and 10

Filtering results allows us to divide up the result set along one or more dimensions. It’s easy and built in to Search API, but often we need a slightly different modality. Drill-down search allows us to constrain (rather than divide) our result set to one or more dimensions. The contributed Facets module provides this functionality.

In this tutorial, we'll:

  • Describe how Facets constrains results to preconfigured dimensions
  • Demonstrate how use of a Facet also constrains the possible selections for other facets
  • List the steps for installing Facets module
  • Describe the field types best used for creating facets

By the end of this tutorial you should be able to explain what facets are and how they work in the context of searching a Drupal site's content.