public function clearIndices($className)
    {
        $this->checkImplementsSearchableInterface($className);
        /** @var SearchableInterface $activeRecord */
        $activeRecord = $this->activeRecordFactory->make($className);
        $indices = $indices = $this->initIndices($activeRecord);

        return $this->processIndices($indices, function (Index $index) {
            return $index->clearIndex();
        });
    }
public function clearIndices($className)
    {
        $this->checkImplementsSearchableInterface($className);
        /** @var SearchableInterface $activeRecord */
        $activeRecord = $this->activeRecordFactory->make($className);
        $indices = $indices = $this->initIndices($activeRecord);

        return $this->processIndices($indices, function (Index $index) {
            return $index->clearIndex();
        });
    }
public function clearIndices ( $ className ) { $ this -> checkImplementsSearchableInterface ( $ className ) ; /** @var SearchableInterface $activeRecord */ $ activeRecord = $ this -> activeRecordFactory -> make ( $ className ) ; $ indices = $ indices = $ this -> initIndices ( $ activeRecord ) ; return $ this -> processIndices ( $ indices , function ( Index $ index ) { return $ index -> clearIndex ( ) ; } ) ; }
Clears the indices for the given Class that implements SearchableInterface.

@param string $className The name of the Class which indices are to be cleared.

@throws \InvalidArgumentException
@return array
Clears the indices for the given Class that implements SearchableInterface .