Class

eZ\Publish\Core\Search\Legacy\Content\Indexer

class Indexer extends IncrementalIndexer

Constants

CONTENTOBJECT_TABLE

CONTENTOBJECT_TREE_TABLE

Methods

createSearchIndex(OutputInterface $output, int $iterationCount, bool $commit)

from IncrementalIndexer
updateSearchIndex(array $contentIds, bool $commit)

Updates search engine index based on Content id's.

purge()

Purges whole index, should only be done if user asked for it.

string getName()

Return human readable name of given search engine (and if custom indexer you can append that to).

__construct(LoggerInterface $logger, Handler $persistenceHandler, DatabaseHandler $databaseHandler, Handler $searchHandler)

Details

in IncrementalIndexer at line 31
final public createSearchIndex(OutputInterface $output, int $iterationCount, bool $commit)

Parameters

OutputInterface $output
int $iterationCount
bool $commit commit changes after each iteration

at line 34
public updateSearchIndex(array $contentIds, bool $commit)

Updates search engine index based on Content id's.

If content is: - deleted (NotFoundException) - not published (draft or trashed) Then item is removed from index, if not it is added/updated.

Parameters

array $contentIds
bool $commit

at line 53
public purge()

Purges whole index, should only be done if user asked for it.

at line 29
public string getName()

Return human readable name of given search engine (and if custom indexer you can append that to).

Return Value

string

at line 20
public __construct(LoggerInterface $logger, Handler $persistenceHandler, DatabaseHandler $databaseHandler, Handler $searchHandler)

Parameters

LoggerInterface $logger
Handler $persistenceHandler
DatabaseHandler $databaseHandler
Handler $searchHandler