Elastic Search backend instance breaks Search API Server form when more than 1 type of search backend is active

Created on 23 January 2023, over 1 year ago
Updated 2 November 2023, 8 months ago

Problem/Motivation

Elastic Search backend instance breaks Search API Server form when more than 1 type of search backend is active

I am getting an issue where you have an elasticsearch index and a second type of search like solr.

When you acess the Edit Server form for the other type of search index (eg Solr) search api, the webpage crashes with the following error:

Drupal\search_api\SearchApiException: Cannot load the Elasticsearch cluster for your index. in Drupal\elasticsearch_connector\Plugin\search_api\backend\SearchApiElasticsearchBackend->__construct() (line 205 of modules/contrib/elasticsearch_connector/src/Plugin/search_api/backend/SearchApiElasticsearchBackend.php).

`SearchApiElasticsearchBackend` does not check to see if it is the active search backend instance for the page before throwing error.

Steps to reproduce

1. Create a solr search index
2. Create an elastic search index
3. Attempt to edit the solr search server
4. Website crashes

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

7.0

Component

Elasticsearch Connector

Created by

πŸ‡¦πŸ‡ΊAustralia RichardGaunt Melbourne

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

Comments & Activities

Production build 0.69.0 2024