yii\sphinx\Schema::getIndexTypes PHP Method

getIndexTypes() public method

Returns all index types in the Sphinx.
public getIndexTypes ( boolean $refresh = false ) : array
$refresh boolean whether to fetch the latest available index types. If this is false, index types fetched previously (if available) will be returned.
return array all index types in the Sphinx in format: index name => index type.
    public function getIndexTypes($refresh = false)
    {
        if (!isset($this->_indexTypes) || $refresh) {
            $this->initIndexesInfo();
        }
        return $this->_indexTypes;
    }