SearchUpdateBatchedProcessor
abstract class SearchUpdateBatchedProcessor extends SearchUpdateProcessor (View source)
Provides batching of search updates
Properties
protected | array | $dirty | List of dirty records to process in format |
from SearchUpdateProcessor |
protected | array | $batches | List of batches to be processed |
|
protected | int | $currentBatch | Pointer to index of $batches assigned to $current. |
|
protected | array | $completedIndexes | List of indexes successfully comitted in the current batch |
Methods
protected
bool
Details
__construct()
No description
addDirtyIDs($class, $statefulids, $index)
No description
protected array
prepareIndexes()
Generates the list of indexes to process for the dirty items
protected bool
commitIndex(SolrIndex $index)
Commits the specified index to the Solr service
protected array
getSource()
Gets the record data source to process
bool
process()
Process the current queue
triggerProcessing()
No description
protected
setBatch(int $batch)
Set the current batch index
protected array
segmentBatches(array $source)
Segments batches acording to the specified rules
batchData()
No description