code: func (s *Restore) IndexRestore(idx *IndexEntry) error {
  	if err := s.tx.Insert("index", idx); err != nil {
  		return fmt.Errorf("index insert failed: %v", err)
  	}
  	return nil
  }
docs: // IndexRestore is used to restore an index