How to handle elasticsearch mapping error due to different data type

use some kind of processing pipeline rule like mentioned in this posting:

to have one status field with number and one with a string - based in the field content.