Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

Public Member Functions | List of all members
eZ\Publish\Core\Search\Common\FieldValueMapper Class Reference

Maps raw field values to something search engine can understand. More...

Inheritance diagram for eZ\Publish\Core\Search\Common\FieldValueMapper:

## Public Member Functions
| canMap (Field $field)
| Check if field can be mapped. More...
| map (Field $field)
| Map field value to a proper search engine representation. More...

## Detailed Description

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.

See also
  \eZ\Publish\SPI\Search\FieldType

Definition at line 20 of file FieldValueMapper.php.

## Member Function Documentation

## ◆ canMap()

eZ\Publish\Core\Search\Common\FieldValueMapper::canMap | ( | Field | $field | ) |
| abstract

Check if field can be mapped.

Parameters

  \eZ\Publish\SPI\Search\Field | $field |

Returns
  bool

## ◆ map()

eZ\Publish\Core\Search\Common\FieldValueMapper::map | ( | Field | $field | ) |
| abstract

Map field value to a proper search engine representation.

Parameters

  \eZ\Publish\SPI\Search\Field | $field |

Returns
  mixed|null Returns null on empty value

The documentation for this class was generated from the following file:

- FieldValueMapper.php

Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.