You are here

public function FuzzysearchSearch::supportsIndex in Fuzzy Search 7

Checks whether this processor is applicable for a certain index.

Parameters

\SearchApiIndex $index: The index to check for.

Return value

bool TRUE if the processor can run on the given index; FALSE otherwise.

Overrides SearchApiAbstractProcessor::supportsIndex

File

includes/processor_search.inc, line 17

Class

FuzzysearchSearch
Processor to set the index and search settings. Requires FuzzySearchService.

Code

public function supportsIndex(SearchApiIndex $index) {
  return $index
    ->server() && $index
    ->server()
    ->supportsFeature('fuzzysearch');
}