public function getIndexSchemas($refresh = false)
    {
        $indexes = [];
        foreach ($this->getIndexNames($refresh) as $name) {
            if (($index = $this->getIndexSchema($name, $refresh)) !== null) {
                $indexes[] = $index;
            }
        }

        return $indexes;
    }
public function getIndexSchemas($refresh = false)
    {
        $indexes = [];
        foreach ($this->getIndexNames($refresh) as $name) {
            if (($index = $this->getIndexSchema($name, $refresh)) !== null) {
                $indexes[] = $index;
            }
        }

        return $indexes;
    }
public function getIndexSchemas ( $ refresh = false ) { $ indexes = [ ] ; foreach ( $ this -> getIndexNames ( $ refresh ) as $ name ) { if ( ( $ index = $ this -> getIndexSchema ( $ name , $ refresh ) ) !== null ) { $ indexes [ ] = $ index ; } } return $ indexes ; }
Returns the metadata for all indexes in the database.
@param bool $refresh whether to fetch the latest available index schemas. If this is false,
cached data may be returned if available.
@return IndexSchema[] the metadata for all indexes in the Sphinx.
Each array element is an instance of [[IndexSchema]] or its child class.
Returns the metadata for all indexes in the database .