interface SolrReindexHandler (View source)

Provides interface for queueing a solr reindex

Methods

public
triggerReindex(LoggerInterface $logger, int $batchSize, string $taskName, string|array|null $classes = null)

Trigger a solr-reindex

public
runReindex(LoggerInterface $logger, int $batchSize, string $taskName, string|array|null $classes = null)

Begin an immediate re-index

public
runGroup(LoggerInterface $logger, SolrIndex $indexInstance, array $state, string $class, int $groups, int $group)

Do an immediate re-index on the given group, where the group is defined as the list of items where ID mod $groups = $group, in the given $state and optional $class filter.

Details

triggerReindex(LoggerInterface $logger, int $batchSize, string $taskName, string|array|null $classes = null)

Trigger a solr-reindex

Parameters

LoggerInterface $logger
int $batchSize

Records to run each process

string $taskName

Name of devtask to run

string|array|null $classes

Optional class or classes to limit index to

runReindex(LoggerInterface $logger, int $batchSize, string $taskName, string|array|null $classes = null)

Begin an immediate re-index

Parameters

LoggerInterface $logger
int $batchSize

Records to run each process

string $taskName

Name of devtask to run

string|array|null $classes

Optional class or classes to limit index to

runGroup(LoggerInterface $logger, SolrIndex $indexInstance, array $state, string $class, int $groups, int $group)

Do an immediate re-index on the given group, where the group is defined as the list of items where ID mod $groups = $group, in the given $state and optional $class filter.

Parameters

LoggerInterface $logger
SolrIndex $indexInstance
array $state
string $class
int $groups
int $group