Updated to recognize that the mapping in the latest API does not include a top-level index-name key.