Mappings: Deprecate `index_name`.

Close #6677
Is it related to the same change?