public function pushToIndices(SearchableInterface $searchableModel)
    {
        $indices = $this->initIndices($searchableModel);
        $record = $searchableModel->getAlgoliaRecord();

        return $this->processIndices($indices, function (Index $index) use ($record, $searchableModel) {
            return $index->addObject($record, $searchableModel->getObjectID());
        });
    }
public function pushToIndices(SearchableInterface $searchableModel)
    {
        $indices = $this->initIndices($searchableModel);
        $record = $searchableModel->getAlgoliaRecord();

        return $this->processIndices($indices, function (Index $index) use ($record, $searchableModel) {
            return $index->addObject($record, $searchableModel->getObjectID());
        });
    }
public function pushToIndices ( SearchableInterface $ searchableModel ) { $ indices = $ this -> initIndices ( $ searchableModel ) ; $ record = $ searchableModel -> getAlgoliaRecord ( ) ; return $ this -> processIndices ( $ indices , function ( Index $ index ) use ( $ record , $ searchableModel ) { return $ index -> addObject ( $ record , $ searchableModel -> getObjectID ( ) ) ; } ) ; }
Indexes a searchable model to all indices.

@param SearchableInterface $searchableModel

@return array
Indexes a searchable model to all indices .