Class

eZ\Publish\Core\Search\Elasticsearch\Content\Mapper\StandardMapper

class StandardMapper implements MapperInterface

Standard Mapper implementation maps: - Content with its fields and corresponding Locations - Locations with Content data but without Content fields.

Methods

__construct(FieldRegistry $fieldRegistry, FieldNameGenerator $fieldNameGenerator, Handler $contentHandler, Handler $locationHandler, Handler $contentTypeHandler, Handler $objectStateHandler, Handler $sectionHandler)

Document mapContentById(int|string $contentId)

Maps given Content by given $contentId to a Document.

Document mapContent(Content $content)

Maps given Content to a Document.

Document mapLocation(Location $location)

Maps given Location to a Document.

Details

at line 92
public __construct(FieldRegistry $fieldRegistry, FieldNameGenerator $fieldNameGenerator, Handler $contentHandler, Handler $locationHandler, Handler $contentTypeHandler, Handler $objectStateHandler, Handler $sectionHandler)

Parameters

FieldRegistry $fieldRegistry
FieldNameGenerator $fieldNameGenerator
Handler $contentHandler
Handler $locationHandler
Handler $contentTypeHandler
Handler $objectStateHandler
Handler $sectionHandler

at line 117
public Document mapContentById(int|string $contentId)

Maps given Content by given $contentId to a Document.

Parameters

int|string $contentId

Return Value

Document

at line 133
public Document mapContent(Content $content)

Maps given Content to a Document.

Parameters

Content $content

Return Value

Document

at line 437
public Document mapLocation(Location $location)

Maps given Location to a Document.

Returned Document represents a "parent" Location document searchable with Location Search.

Parameters

Location $location

Return Value

Document