yii\sphinx\ActiveRecord::getIndexSchema PHP Method

getIndexSchema() public static method

Returns the schema information of the Sphinx index associated with this AR class.
public static getIndexSchema ( ) : IndexSchema
return IndexSchema the schema information of the Sphinx index associated with this AR class.
    public static function getIndexSchema()
    {
        $schema = static::getDb()->getIndexSchema(static::indexName());
        if ($schema !== null) {
            return $schema;
        } else {
            throw new InvalidConfigException("The index does not exist: " . static::indexName());
        }
    }