You are here

public function SearchApiDbService::supportsFeature in Search API Database Search 7

Implements SearchApiServiceInterface::__construct().

The default implementation always returns FALSE.

Overrides SearchApiAbstractService::supportsFeature

File

./service.inc, line 174
Contains SearchApiDbService.

Class

SearchApiDbService
Indexes and searches items using the database.

Code

public function supportsFeature($feature) {
  $supported = array(
    'search_api_autocomplete' => TRUE,
    'search_api_between' => TRUE,
    'search_api_facets' => TRUE,
    'search_api_facets_operator_or' => TRUE,
    'search_api_random_sort' => TRUE,
    'search_api_service_extra' => TRUE,
  );
  return isset($supported[$feature]);
}