public function removeFromIndices(SearchableInterface $searchableModel)
    {
        $indices = $indices = $this->initIndices($searchableModel);
        $objectID = $searchableModel->getObjectID();

        return $this->processIndices($indices, function (Index $index) use ($objectID) {
            return $index->deleteObject($objectID);
        });
    }
public function removeFromIndices(SearchableInterface $searchableModel)
    {
        $indices = $indices = $this->initIndices($searchableModel);
        $objectID = $searchableModel->getObjectID();

        return $this->processIndices($indices, function (Index $index) use ($objectID) {
            return $index->deleteObject($objectID);
        });
    }
public function removeFromIndices ( SearchableInterface $ searchableModel ) { $ indices = $ indices = $ this -> initIndices ( $ searchableModel ) ; $ objectID = $ searchableModel -> getObjectID ( ) ; return $ this -> processIndices ( $ indices , function ( Index $ index ) use ( $ objectID ) { return $ index -> deleteObject ( $ objectID ) ; } ) ; }
Removes a searchable model from indices.

@param SearchableInterface $searchableModel

@return array
@throws \InvalidArgumentException
Removes a searchable model from indices .