using the `GET <index_name>/_mapping` API, create a feature where the user could get an output of field mappings, given an index matching pattern.