Mappings: Deprecate `index_name`.

Close #6677
I think that we should do
`path == ContentPath.Type.JUST_NAME` instead of `pathType != ContentPath.Type.FULL`

In case in the future we want to add a new option...