SilverStripe\FullTextSearch\Search\Processors\SearchUpdateQueuedJobProcessor
Synopsis
class SearchUpdateQueuedJobProcessor
extends SearchUpdateBatchedProcessor
implements
QueuedJob
{
- // members
- private static string $reindex_queue = QueuedJob::QUEUED;
- protected array $messages = ;
- // Inherited members from SearchUpdateBatchedProcessor
- protected $batches;
- protected $currentBatch;
- protected $completedIndexes;
- // Inherited members from SearchUpdateProcessor
- protected $dirty;
- // methods
- public void triggerProcessing()
- public void getTitle()
- public void getSignature()
- public void getJobType()
- public void jobFinished()
- public void setup()
- public void prepareForRestart()
- public void afterComplete()
- public void getJobData()
- public void setJobData()
- public void addMessage()
- public void process()
- // Inherited methods from SearchUpdateBatchedProcessor
- public void __construct()
- protected void setBatch()
- protected void getSource()
- public boolean process()
- protected array segmentBatches()
- public void batchData()
- public void triggerProcessing()
- // Inherited methods from SearchUpdateProcessor
- public void __construct()
- public void addDirtyIDs()
- protected array prepareIndexes()
- protected bool commitIndex()
- protected array getSource()
- public bool process()
- public abstract void triggerProcessing()
Hierarchy
Extends
Implements
- Symbiote\QueuedJobs\Services\QueuedJob
Members
private
- $reindex_queue
—
string
The QueuedJob queue to use when processing updates
protected
- $batches
—
array
List of batches to be processed - $completedIndexes
—
array
List of indexes successfully comitted in the current batch - $currentBatch
—
int
Pointer to index of $batches assigned to $current. - $dirty
—
array
List of dirty records to process in format - $messages
Methods
public
- addMessage()
- afterComplete()
- getJobData()
- getJobType()
- getSignature()
- getTitle()
- jobFinished()
- prepareForRestart()
- process()
- setJobData()
- setup()
- triggerProcessing()
Inherited from SilverStripe\FullTextSearch\Search\Processors\SearchUpdateBatchedProcessor
protected
- getSource()
- segmentBatches() — Segments batches acording to the specified rules
- setBatch() — Set the current batch index
public
- batchData()
- process() — Process the current queue
- triggerProcessing()
Inherited from SilverStripe\FullTextSearch\Search\Processors\SearchUpdateProcessor
protected
- commitIndex() — Commits the specified index to the Solr service
- getSource() — Gets the record data source to process
- prepareIndexes() — Generates the list of indexes to process for the dirty items
public
- addDirtyIDs()
- process() — Process all indexes, returning true if successful
- triggerProcessing()