Mappings: Deprecate `index_name`.

Close #6677
maybe also add an test that verifies behaviour if version >= 1.4.0?