protected function Stemmer::testType in Search API 8
Determines whether a field of a certain type should be preprocessed.
The default implementation returns TRUE for "text" and "string".
Parameters
string $type: The type of the field (either when preprocessing the field at index time, or a condition on the field at query time).
Return value
bool TRUE if fields of that type should be processed, FALSE otherwise.
Overrides FieldsProcessorPluginBase::testType
File
- src/
Plugin/ search_api/ processor/ Stemmer.php, line 133
Class
- Stemmer
- Stems search terms.
Namespace
Drupal\search_api\Plugin\search_api\processorCode
protected function testType($type) {
return $this
->getDataTypeHelper()
->isTextType($type);
}