You can't switch the source on the fly, you'll have to recreate it. And if you change the index pattern that the saved search is based on, you'll have to fix that too. It's best to be aware of your index pattern uuids and reuse them when recreating the index pattern in order for the existing visualizations to point at it.