Imported index pattern missing fields

My scenario is that I export some index patterns from one instance of OpenSearch and import them into another instance of OpenSearch. This can be for migration or moving from development to production.

The new instance may not contain all the data that the previous instance had at the time the index patterns are imported are into it.

I am finding that the new instance index patterns do not contain all the fields that were included in the index pattern definition.

As the new instance receives data, I have to manually refresh the index patterns to force additional fields to be added. This wouldn’t be so bad if all the field attributes appeared, specifically I am missing urlTemplate values for drilldown fields.

Can someone tell me how to avoid this problem?

I am running OpenSearch 2.11.1 in a container on RHEL 9.