You are here

public function SearchApiElasticsearchElastica::supportsFeature in Search API Elasticsearch 7

Overrides supportsFeature().

Overrides SearchApiElasticsearchAbstractService::supportsFeature

File

modules/elastica/includes/SearchApiElasticsearchElastica.inc, line 87
Provides Elastica client for Search API Elasticsearch.

Class

SearchApiElasticsearchElastica
Search API Elasticsearch Elastica service class.

Code

public function supportsFeature($feature) {
  parent::supportsFeature($feature);
  $this->_supportedFeatures += drupal_map_assoc(array(
    'search_api_facets',
    'search_api_facets_operator_or',
    'search_api_autocomplete',
    'search_api_mlt',
    'search_api_data_type_location',
  ));
  return isset($this->_supportedFeatures[$feature]);
}