Facets showing empty

Created on 8 February 2022, over 3 years ago
Updated 20 March 2023, over 2 years ago

Make facets work correctly with elasticsearch connector.

Create a view with page based on an index
Create facets based on view
Add block to page
View page

Following error appears on the view page

Warning: Undefined array key "facet" in Drupal\elasticsearch_connector\Elasticsearch\Parameters\Builder\SearchBuilder->setFacets() (line 962 of modules/contrib/elasticsearch_connector/src/ElasticSearch/Parameters/Builder/SearchBuilder.php).

I'm using Drupal 9.3.5 and the following modules.

drupal/search_api: 1.x-dev,
drupal/facets: 2.0.x-dev,

🐛 Bug report
Status

RTBC

Version

8.0

Component

Elasticsearch Connector Search API

Created by

🇬🇧United Kingdom danharper

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024