protected function SearchApiAbstractProcessor::processFieldValue in Search API 7
Called for processing a single text element in a field. The default implementation just calls process().
$value can either be left a string, or changed into an array of tokens. A token is an associative array containing:
- value: Either the text inside the token, or a nested array of tokens. The score of nested tokens will be multiplied by their parent's score.
- score: The relative importance of the token, as a float, with 1 being the default.
1 call to SearchApiAbstractProcessor::processFieldValue()
- SearchApiAbstractProcessor::processField in includes/
processor.inc - Method for preprocessing field data.
2 methods override SearchApiAbstractProcessor::processFieldValue()
- SearchApiHtmlFilter::processFieldValue in includes/
processor_html_filter.inc - Called for processing a single text element in a field. The default implementation just calls process().
- 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.inc, line 434 - Contains SearchApiProcessorInterface and SearchApiAbstractProcessor.
Class
- SearchApiAbstractProcessor
- Abstract processor implementation that provides an easy framework for only processing specific fields.
Code
protected function processFieldValue(&$value) {
$this
->process($value);
}