We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30749af commit cde01efCopy full SHA for cde01ef
modules/elasticsearch_connector_search_api/service.inc
@@ -373,6 +373,11 @@ class SearchApiElasticsearchConnector extends SearchApiAbstractService {
373
$params = $this->getIndexParam($index, TRUE);
374
375
try {
376
+ // If there is no connection there is nothing we can do.
377
+ if (!$this->elasticsearchClient) {
378
+ return;
379
+ }
380
+
381
$this->elasticsearchClient->indices()->deleteMapping($params);
382
383
// Check if there are any other types in the index before deleting it.
0 commit comments