protected static function SearchApiDbService::isTokenizerActive in Search API Database Search 7
Determines whether the "Tokenizer" processor is enabled for an index.
Parameters
SearchApiIndex $index: The index to check.
Return value
bool TRUE if the built-in "Tokenizer" processor is enabled on the given index, FALSE otherwise.
3 calls to SearchApiDbService::isTokenizerActive()
- SearchApiDbService::createDbQuery in ./
service.inc - Creates a database query for a search.
- SearchApiDbService::createFilterCondition in ./
service.inc - Creates a database query condition for a given search filter.
- SearchApiDbService::getAutocompleteSuggestions in ./
service.inc - Implements SearchApiAutocompleteInterface::getAutocompleteSuggestions().
File
- ./
service.inc, line 2328 - Contains SearchApiDbService.
Class
- SearchApiDbService
- Indexes and searches items using the database.
Code
protected static function isTokenizerActive(SearchApiIndex $index) {
return !empty($index->options['processors']['search_api_tokenizer']['status']);
}