trait BulkOperationsTrait

Methods

updateDocumentsByCallback(array $documentIds, callable $callback, $requiredFields = ['_id', 'meta_data'])

Mass Update to update a few search index attributes for many documents at once This command will not create new Index entries but only update existing ones

Details

at line 20
updateDocumentsByCallback(array $documentIds, callable $callback, $requiredFields = ['_id', 'meta_data'])

Mass Update to update a few search index attributes for many documents at once This command will not create new Index entries but only update existing ones

Parameters

array $documentIds

List of document ids which shall be processed / updated

callable $callback

Function to be called for each document entry. Retrieves the requiredFields + ES document infos as an $hit array parameter

$requiredFields