public function updateMultipleInIndices(array $searchableModels)
    {
        $algoliaRecords = $this->getAlgoliaRecordsFromSearchableModelArray($searchableModels);
        $indices = $this->initIndices($searchableModels[0]);

        return $this->processIndices($indices, function (Index $index) use ($algoliaRecords) {
            return $index->saveObjects($algoliaRecords);
        });
    }
public function updateMultipleInIndices(array $searchableModels)
    {
        $algoliaRecords = $this->getAlgoliaRecordsFromSearchableModelArray($searchableModels);
        $indices = $this->initIndices($searchableModels[0]);

        return $this->processIndices($indices, function (Index $index) use ($algoliaRecords) {
            return $index->saveObjects($algoliaRecords);
        });
    }
public function updateMultipleInIndices ( array $ searchableModels ) { $ algoliaRecords = $ this -> getAlgoliaRecordsFromSearchableModelArray ( $ searchableModels ) ; $ indices = $ this -> initIndices ( $ searchableModels [ 0 ] ) ; return $ this -> processIndices ( $ indices , function ( Index $ index ) use ( $ algoliaRecords ) { return $ index -> saveObjects ( $ algoliaRecords ) ; } ) ; }
Updates multiple models data in all indices. The given searchable models must be of the same class.

@param SearchableInterface[] $searchableModels

@return array
Updates multiple models data in all indices . The given searchable models must be of the same class .