public function SearchApiElasticsearchConnector::getCluster in Elasticsearch Connector 7.5
Same name and namespace in other branches
- 7 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnector::getCluster()
- 7.2 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnector::getCluster()
Get the configured cluster; if the cluster is blank, use the default.
1 call to SearchApiElasticsearchConnector::getCluster()
- SearchApiElasticsearchConnector::__construct in modules/
elasticsearch_connector_search_api/ service.inc - Overrides __construct().
File
- modules/
elasticsearch_connector_search_api/ service.inc, line 1071 - Provides a Elasticsearch-based service class for the Search API using Elasticsearch Connector module.
Class
- SearchApiElasticsearchConnector
- Search service class.
Code
public function getCluster() {
$cluster_id = $this
->getOption('cluster', '');
return empty($cluster_id) ? elasticsearch_connector_get_default_connector() : $cluster_id;
}