Facets 3 support

Created on 12 March 2025, about 1 month ago

Problem/Motivation

With Facets v3 search api, views gains facets filtering as views filters, but it needs a plugin that defines the view display as search api display (@SearchApiDisplay), for facets module to be able to "autocreate" a facet source plugin.

Looking at the code of https://git.drupalcode.org/project/search_api/-/blob/8.x-1.x/src/Plugin/... is as simple as adding the plugin to the correct namespace to get facet filtering for geojson display. This way one can use urls like:

https://example.org/map-geojson?field_district[94]=94

to obtain a filtered map (that could be enhanced with a lot of nice facets filtering).

Steps to reproduce

Proposed resolution

Add the facet plugin.

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇪🇸Spain aleix

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024