You are here

public function SearchApiElasticsearchConnector::versionIs2x in Elasticsearch Connector 7.5

Same name and namespace in other branches
  1. 7.2 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnector::versionIs2x()
2 calls to SearchApiElasticsearchConnector::versionIs2x()
SearchApiElasticsearchConnector::deleteItems in modules/elasticsearch_connector_search_api/service.inc
Overrides deleteItems().
SearchApiElasticsearchConnector::removeIndex in modules/elasticsearch_connector_search_api/service.inc
Overrides removeIndex().

File

modules/elasticsearch_connector_search_api/service.inc, line 486
Provides a Elasticsearch-based service class for the Search API using Elasticsearch Connector module.

Class

SearchApiElasticsearchConnector
Search service class.

Code

public function versionIs2x() {
  $version = $this
    ->getClusterVersion();
  if (version_compare($version, '2.0', '>=')) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}