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

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

        return $this->processIndices($indices, function (Index $index) use ($records) {
            return $this->reindexAtomically($index, $records);
        });
    }
public function reindexOnly ( array $ searchableModels ) { $ records = $ this -> getAlgoliaRecordsFromSearchableModelArray ( $ searchableModels ) ; $ indices = $ this -> initIndices ( $ searchableModels [ 0 ] ) ; return $ this -> processIndices ( $ indices , function ( Index $ index ) use ( $ records ) { return $ this -> reindexAtomically ( $ index , $ records ) ; } ) ; }
Re-indexes the related indices for the given array only with the objects from the given array.
The given array must consist of Searchable objects of same class.

@param SearchableInterface[] $searchableModels

@throws \InvalidArgumentException
@return array
Re - indexes the related indices for the given array only with the objects from the given array . The given array must consist of Searchable objects of same class .