public function addObjects($objects, $objectIDKey = 'objectID') { $requests = $this->buildBatch('addObject', $objects, true, $objectIDKey); return $this->batch($requests); }
/** * {@inheritDoc} */ public function synchronize(array $documents) { if ($this->clearOnSync) { $this->index->clearIndex(); } $this->index->addObjects($documents); }