PHP Class eZ\Publish\Core\Search\Common\FieldValueMapper

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.
See also: eZ\Publish\SPI\Search\FieldType
Show file Open project: ezsystems/ezpublish-kernel Class Usage Examples

Public Methods

Method Description
canMap ( eZ\Publish\SPI\Search\Field $field ) : boolean Check if field can be mapped.
map ( eZ\Publish\SPI\Search\Field $field ) : mixed | null Map field value to a proper search engine representation.

Method Details

canMap() abstract public method

Check if field can be mapped.
abstract public canMap ( eZ\Publish\SPI\Search\Field $field ) : boolean
$field eZ\Publish\SPI\Search\Field
return boolean

map() abstract public method

Map field value to a proper search engine representation.
abstract public map ( eZ\Publish\SPI\Search\Field $field ) : mixed | null
$field eZ\Publish\SPI\Search\Field
return mixed | null Returns null on empty value