{
"objectID": "myObjectID1",
"taskID": 678,
}
{
"objectIDs": [
"myObjectID1",
"myObjectID2"
],
"taskID": 678,
}
$index->saveObjects(array objects, [
"autoGenerateObjectIDIfNotExist" => boolean
// any other requestOptions
]
// add a single object
$index->saveObject(array object, [
"autoGenerateObjectIDIfNotExist" => boolean
// any other requestOptions
]
$objects = [/* objects */];
$res = $index->saveObjects($objects, [
'autoGenerateObjectIDIfNotExist' => true,
'X-Forwarded-For' => '94.228.178.246'
]);
$index->saveObject(
[
'objectID' => 'myID',
'firstname' => 'Jimmie',
'lastname' => 'Barninger'
]
);