You are here

protected function SearchApiTokenizer::prepare in Search API 7

2 calls to SearchApiTokenizer::prepare()
SearchApiTokenizer::process in includes/processor_tokenizer.inc
Function that is ultimately called for all text by the standard implementation, and does nothing by default.
SearchApiTokenizer::processFieldValue in includes/processor_tokenizer.inc
Called for processing a single text element in a field. The default implementation just calls process().

File

includes/processor_tokenizer.inc, line 107
Contains SearchApiTokenizer.

Class

SearchApiTokenizer
Processor for tokenizing fulltext data by replacing (configurable) non-letters with spaces.

Code

protected function prepare() {
  if (!isset($this->spaces)) {
    $this->spaces = str_replace('/', '\\/', $this->options['spaces']);
    $this->ignorable = str_replace('/', '\\/', $this->options['ignorable']);
  }
}