AlgoliaSearch\Index::batchObjects
Perform batch operation on several objects.
Signature
public function batchObjects(array
$objects,
[string
$objectIDKey = 'objectID',
[string
$objectActionKey = 'objectAction']] )
Parameters
$objects
—
array
- contains an array of objects to update (each object must contains an objectID
attribute)
$objectIDKey
—
string
- the key in each object that contains the objectID
$objectActionKey
—
string
- the key in each object that contains the action to perform (addObject, updateObject,
deleteObject or partialUpdateObject)
Returns
- mixed
Errors/Exceptions
-
Exception