You are here

public function SearchApiElasticsearchService::getClient in Search API Elasticsearch 7.2

Helper method for accessing Elastica\Client.

Return value

Client

File

includes/SearchApiElasticsearchService.inc, line 361
Provides Elasticsearch service for Search API.

Class

SearchApiElasticsearchService
@file Provides Elasticsearch service for Search API.

Code

public function getClient() {
  return $this->_client ?: ($this->_client = new Client($this
    ->configureClient()));
}