You are here

public function SearchApiElasticsearchConnector::supportsFeature in Elasticsearch Connector 7

Same name and namespace in other branches
  1. 7.5 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnector::supportsFeature()
  2. 7.2 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnector::supportsFeature()

Overrides supportsFeature().

Overrides SearchApiAbstractService::supportsFeature

File

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

Class

SearchApiElasticsearchConnector
Search service class.

Code

public function supportsFeature($feature) {

  // First, check the features we always support.
  $supported = drupal_map_assoc(array(
    'search_api_autocomplete',
    'search_api_facets',
    'search_api_facets_operator_or',
    'search_api_mlt',
    'search_api_spellcheck',
    'search_api_data_type_location',
  ));
  return isset($supported[$feature]);
}