Mappings: Deprecate `index_name`.

Close #6677
Add @Test annotation?