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

public
__construct()

No description

public
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

public
bool
process()

Process the current queue

public
triggerProcessing()

No description

protected
setBatch(int $batch)

Set the current batch index

protected
array
segmentBatches(array $source)

Segments batches acording to the specified rules

public
batchData()

No description

Details

__construct()

No description

addDirtyIDs($class, $statefulids, $index)

No description

Parameters

$class
$statefulids
$index

protected array prepareIndexes()

Generates the list of indexes to process for the dirty items

Return Value

array

protected bool commitIndex(SolrIndex $index)

Commits the specified index to the Solr service

Parameters

SolrIndex $index

Index object

Return Value

bool

Flag indicating success

protected array getSource()

Gets the record data source to process

Return Value

array

bool process()

Process the current queue

Return Value

bool

Flag indicating success

triggerProcessing()

No description

protected setBatch(int $batch)

Set the current batch index

Parameters

int $batch

Index of the batch

protected array segmentBatches(array $source)

Segments batches acording to the specified rules

Parameters

array $source

Source input

Return Value

array Batches

batchData()

No description