On creation of a visualization the index used appears to be a UID. If the index is deleted and re-created, the UID changes and all the visualizations (and dashboards using those viz) break.

It would seem like in the json you could change it to use the friendly index name pattern, but this isn't the case?

Example kibanaSavedObjectMeta.searchSourceJSON:
  "index": "0e47d850-b77b-11e8-b1a6-5b1eb76b7959",
  "index": "myindex-pattern*",

Is there a way to do this so visualizations are more portable?