Equivalent setting for following mapping in Elasticsearch 5.x

For now, the only way to solve that I believe is at index time or using an ingest script processor.

I opened the following issue for discussion:

See also