SolrReindexQueuedHandler
class SolrReindexQueuedHandler extends SolrReindexBase (View source)
Represents a queued task to start the reindex job
Methods
Begin an immediate re-index
Process index for a single SolrIndex instance
Get valid classes and options for an index with an optional filter
Process re-index for a given variant state and class
Initiate the processing of a single group
Gets the datalist of records in the given group in the current state
Clear all records of the given class in the current state ONLY.
Trigger a solr-reindex
Details
runReindex(LoggerInterface $logger, int $batchSize, string $taskName, string|array|null $classes = null)
Begin an immediate re-index
protected
processIndex(LoggerInterface $logger, SolrIndex $indexInstance, int $batchSize, string $taskName, string $classes = null)
Process index for a single SolrIndex instance
protected array
getClassesForIndex(SolrIndex $index, string|array $filterClasses = null)
Get valid classes and options for an index with an optional filter
protected
processVariant(LoggerInterface $logger, SolrIndex $indexInstance, array $state, string $class, bool $includeSubclasses, int $batchSize, string $taskName)
Process re-index for a given variant state and class
protected
processGroup(LoggerInterface $logger, SolrIndex $indexInstance, array $state, string $class, int $groups, int $group, string $taskName)
Initiate the processing of a single group
runGroup(LoggerInterface $logger, SolrIndex $indexInstance, array $state, string $class, int $groups, int $group)
Explicitly invoke the process that performs the group processing. Can be run either by a background task or a queuedjob.
Does not commit changes to the index, so this must be controlled externally.
protected DataList
getRecordsInGroup(SolrIndex $indexInstance, string $class, int $groups, int $group)
Gets the datalist of records in the given group in the current state
Assumes that the desired variant state is in effect.
protected
clearRecords(SolrIndex $indexInstance, string $class, int $groups = null, int $group = null)
Clear all records of the given class in the current state ONLY.
Optionally delete from a given group (where the group is defined as the ID % total groups)
protected QueuedJobService
getQueuedJobService()
No description
protected int
cancelExistingJobs(string $type)
Cancel any cancellable jobs
triggerReindex(LoggerInterface $logger, int $batchSize, string $taskName, string|array|null $classes = null)
Trigger a solr-reindex