code: def create(self, using=None, **kwargs):
          
          self._get_connection(using).indices.create(index=self._name, body=self.to_dict(), **kwargs)
docs: Creates the index in elasticsearch.
  
          Any additional keyword arguments will be passed to
          ``Elasticsearch.indices.create`` unchanged.