SearchUpdateBatchedProcessor
abstract class SearchUpdateBatchedProcessor extends SearchUpdateProcessor (View source)
Provides batching of search updates
Traits
Provides extensions to this object to integrate it with standard config API methods.
Config options
batch_size | int | Maximum number of record-states to process in one batch. |
|
batch_soft_cap | int | Up to this number of additional ids can be added to any batch in order to reduce the number of batches |
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
Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .....).
Gets the uninherited value for the given config option
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
static Config_ForClass
config()
Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .....).
mixed
stat(string $name)
deprecated
deprecated
Get inherited config value
mixed
uninherited(string $name)
Gets the uninherited value for the given config option
$this
set_stat(string $name, mixed $value)
deprecated
deprecated
Update the config value for a given property
protected
setBatch(int $batch)
Set the current batch index
protected array
segmentBatches(array $source)
Segments batches acording to the specified rules
batchData()
No description