code: func (s *IndexStorage) Commit() error {
  	if !s.set {
  		return nil
  	}
  
  	idx, err := s.temporal.Index()
  	if err != nil {
  		return err
  	}
  
  	return s.IndexStorer.SetIndex(idx)
  }
docs: // Commit it copies the index from the temporal storage into the base storage.