How to display all options in Facet exposed filters, even when a filter is active?

Created on 2 December 2024, 16 days ago

Problem/Motivation

I’m using the Facets module and Search API Solr to implement filtering in Views with exposed filters. I’ve encountered an issue where, when a value is selected in one Facet filter (e.g., year), other filters (e.g., type) only display options that have results for the currently selected year. I need to display all options in all filters, regardless of active filters.

Steps to reproduce

I have two exposed Facet filters: Year and Type.

If I select the year value 1982, I want the "Year" filter to still display all available years (including unselected ones), and the "Type" filter to display all types, even those without results for the year 1982.
This issue prevents users from seeing all available filter options when applying any filter.

Thanks a lot

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia roman.haluska

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @roman.haluska
  • πŸ‡§πŸ‡ͺBelgium StryKaizer Belgium

    Limitting the options available is exactly what Facets does ;)

    You can change the minimum value to 0, but it is probably better to not use facets in most cases, and use regular exposed filters, if you dont want your options to narrow down depending on the selection.

  • πŸ‡§πŸ‡ͺBelgium borisson_ Mechelen, πŸ‡§πŸ‡ͺ
Production build 0.71.5 2024