Interface

eZ\Publish\Core\Search\Common\BackgroundIndexer

interface BackgroundIndexer

Interface for performing indexing in background.

Example of background: After console command or request has finished execution.

NOTE: This is not for use by regular indexing needs reacting to Repository signals, but rather for use inside the Search service when inconsistencies are discovered which should be re-indexed, hence operate as a self healing system.

Methods

registerContent(ContentInfo $contentInfo)

Register a content for refreshing index in the background.

registerLocation(Location $location)

Register a location for refreshing index in the background.

Details

at line 35
public registerContent(ContentInfo $contentInfo)

Register a content for refreshing index in the background.

If content is: - deleted (NotFoundException) - not published (draft or trashed)

.. then item is removed from index, if not it is added/updated.

Parameters

ContentInfo $contentInfo

at line 48
public registerLocation(Location $location)

Register a location for refreshing index in the background.

If content is: - deleted (NotFoundException) - not published (draft or trashed)

.. then item is removed from index, if not it is added/updated.

Parameters

Location $location