Rewrite facets exposed filters to be native views filters.

Created on 13 May 2024, about 2 months ago
Updated 17 May 2024, about 1 month ago

At this moment, facets exposed filters are references to a facet entity.
However, we do not need the facet entity. We can move all facet settings into a views exposed filter itself.

This has many advantages:

  • No url processor required anymore for "views exposed filters" facets.
  • Better performance: the actual search query needs to trigger only once. In the current implementation the search query fires twice, once to fill the facet results and once to do the actual query.
  • No widget selection required anymore for "views exposed filters", which reduces confusion (the actual widget is already selected using BEF anyway)
  • Multiple displays are supported out of the box, no need to recreate existing facets anymore when a view has multiple displays!
  • MUCH better site builder experience. You can create facet filters right from views, similar to all other filters in that view.
  • Working ajax out of the box

Still todo:

  • Support other query tyes, for now only search_api_string is supported

For now, also apply following patch to search_api
πŸ“Œ Support views default display Active

πŸ“Œ Task
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium StryKaizer Belgium

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024