You are here

protected function SearchApiPorterStemmer::getExceptions in Search API 7

Retrieves the processor's configured exceptions.

Return value

string[] An associative array of exceptions, with words as keys and stems as their replacements.

1 call to SearchApiPorterStemmer::getExceptions()
SearchApiPorterStemmer::process in includes/processor_stemmer.inc
Function that is ultimately called for all text by the standard implementation, and does nothing by default.

File

includes/processor_stemmer.inc, line 78
Contains SearchApiPorterStemmer and SearchApiPorter2.

Class

SearchApiPorterStemmer
Stems words to their roots.

Code

protected function getExceptions() {
  if (!empty($this->options['exceptions'])) {
    $exceptions = parse_ini_string($this->options['exceptions'], TRUE);
    return is_array($exceptions) ? $exceptions : array();
  }
  return array();
}