code: def clone_index(self, new_indexname, index_conf=None):
          '''Clone current index
  
             All entries of the current index will be copied into the newly
             created one named `new_indexname`
  
             :param index_conf: Configuration to be used in the new index creation.
                                This param will be passed directly to :py:func:`DB.create_index`
          '''
          log.debug("Cloning index '{}' into '{}'".format(self.index_name, new_indexname))
          self.create_index(indexname=new_indexname, index_conf=index_conf)
          reindex(self.es, self.index_name, new_indexnamef clone_index(self, new_indexname, index_conf=None):
          '''Clone current index
  
             All entries of the current index will be copied into the newly
             created one named `new_indexname`
  
             :param index_conf: Configuration to be used in the new index creation.
                                This param will be passed directly to :py:func:`DB.create_index`
          '''
          log.debug("Cloning index '{}' into '{}'".format(self.index_name, new_indexname))
          self.create_index(indexname=new_indexname, index_conf=index_conf)
          reindex(self.es, self.index_name, new_indexname)
docs: Clone current index
  
             All entries of the current index will be copied into the newly
             created one named `new_indexname`
  
             :param index_conf: Configuration to be used in the new index creation.
                                This param will be passed directly to :py:func:`DB.create_index`