public function SearchApiElasticsearchConnector::__construct in Elasticsearch Connector 7.5
Same name and namespace in other branches
- 7 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnector::__construct()
- 7.2 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnector::__construct()
Overrides __construct().
Overrides SearchApiAbstractService::__construct
File
- modules/
elasticsearch_connector_search_api/ service.inc, line 57 - Provides a Elasticsearch-based service class for the Search API using Elasticsearch Connector module.
Class
- SearchApiElasticsearchConnector
- Search service class.
Code
public function __construct(SearchApiServer $server) {
parent::__construct($server);
$this->cluster_id = $this
->getCluster();
if ($this->cluster_id) {
$this->elasticsearchClient = elasticsearch_connector_get_client_by_id($this->cluster_id);
}
}