I have a step-by-step guide documented in this article with examples: https://abdullaev.dev/elasticsearch-how-to-update-mapping-for-existing-fields/