public function updateInIndices(SearchableInterface $searchableModel)
    {
        $indices = $this->initIndices($searchableModel);
        $record = $searchableModel->getAlgoliaRecord();
        $record['objectID'] = $searchableModel->getObjectID();

        return $this->processIndices($indices, function (Index $index) use ($record) {
            return $index->saveObject($record);
        });
    }
public function updateInIndices(SearchableInterface $searchableModel)
    {
        $indices = $this->initIndices($searchableModel);
        $record = $searchableModel->getAlgoliaRecord();
        $record['objectID'] = $searchableModel->getObjectID();

        return $this->processIndices($indices, function (Index $index) use ($record) {
            return $index->saveObject($record);
        });
    }
public function updateInIndices ( SearchableInterface $ searchableModel ) { $ indices = $ this -> initIndices ( $ searchableModel ) ; $ record = $ searchableModel -> getAlgoliaRecord ( ) ; $ record [ 'objectID' ] = $ searchableModel -> getObjectID ( ) ; return $ this -> processIndices ( $ indices , function ( Index $ index ) use ( $ record ) { return $ index -> saveObject ( $ record ) ; } ) ; }
Updates the models data in all indices.

@param SearchableInterface $searchableModel

@return array
Updates the models data in all indices .