Class

eZ\Publish\Core\Search\Common\FieldValueMapper

abstract class FieldValueMapper

Maps raw field values to something search engine can understand.

This is used when indexing Content and matching Content fields. Actual format of the returned value depends on the search engine implementation, meaning engines should override common implementation as needed, but the same input should be handled across engines.

Methods

bool canMap(Field $field)

Check if field can be mapped.

mixed|null map(Field $field)

Map field value to a proper search engine representation.

Details

at line 31
abstract public bool canMap(Field $field)

Check if field can be mapped.

Parameters

Field $field

Return Value

bool

at line 40
abstract public mixed|null map(Field $field)

Map field value to a proper search engine representation.

Parameters

Field $field

Return Value

mixed|null Returns null on empty value