How to restore source-only indices and rebuild index

When I created the snapshot repo, I chose source-only to save space. When I restored it, I found it didn't rebuild the index.

Instead of restoring it to a temporary index, then call the reindex API. Is there a simpler method to do it in one step?