code: def upgrade(self, using=None, **kwargs):
          
          return self._get_connection(using).indices.upgrade(index=self._name, **kwargs)
docs: Upgrade the index to the latest format.
  
          Any additional keyword arguments will be passed to
          ``Elasticsearch.indices.upgrade`` unchanged.