Snapshot and restore API question

Hi all,

Is there a best way to restore an index like restoring a relational database?
As I know, in Oracle, restoring a backup is overwriting the existing database and replace with the backup,
and the behavior of _restore API cannot overwrite the index since it will warn "an open index with same name already exists in the cluster", so I have to define "rename_pattern" and "rename_replacement".
Is there a best way to restore an index like restoring a relational database?

Thanks in advance

You can close or delete the index before restoring from a snapshot, or else you can restore to a new name and use an alias to redirect traffic to the new index.

thanks for replying,

I would like to ask, what if I close the index and restore a snapshot using that index,
after that can I open the index again or the index is already replaced by the snapshot?

Yes that's correct, the index is replaced.