Backend and Infrastructure

Facets in Search for Drupal 8, 9, 10, and 11

Filtering results allows us to divide up the result set along one or more dimensions. It’s built in to Search API, but often we need a slightly different approach. Drill-down search or faceted searching 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.

Drupal Site Administration