getCluster error in getIndexName

Created on 22 June 2020, over 4 years ago
Updated 20 January 2023, about 2 years ago

When site has also other search backend than Elasticsearch, adding or clearing elasticsearch index, will provide a fatal error
"Error: Call to undefined method Drupal\search_api_db\Plugin\search_api\backend\Database::getCluster() in Drupal\elasticsearch_connector\ElasticSearch\Parameters\Factory\IndexFactory::getIndexName() (line 236 of /docroot/modules/contrib/elasticsearch_connector/src/ElasticSearch/Parameters/Factory/IndexFactory.php)"

This is because getIndexName() on src/ElasticSearch/Parameters/Factory/IndexFactory doesn't check if the backend is SearchApiElasticsearchBackend.

🐛 Bug report
Status

Fixed

Version

7.0

Component

Elasticsearch Connector

Created by

🇳🇱Netherlands Roderik de Langen

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.

No activities found.

Production build 0.71.5 2024