Interface

eZ\Publish\Core\Search\Elasticsearch\Content\MapperInterface

interface MapperInterface

Mapper maps Content and Location objects to a Document object, representing a document in Elasticsearch index storage.

Note that custom implementations might need to be accompanied by custom mappings.

Methods

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 29
public Document mapContentById(int|string $contentId)

Maps given Content by given $contentId to a Document.

Parameters

int|string $contentId

Return Value

Document

at line 38
public Document mapContent(Content $content)

Maps given Content to a Document.

Parameters

Content $content

Return Value

Document

at line 49
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