docs: def mapping_get(index, doc_type, hosts=None, profile=None):
      '''
      Retrieve mapping definition of index or index/type
  
      index
          Index for the mapping
      doc_type
          Name of the document type
  
      CLI example::
  
          salt myminion elasticsearch.mapping_get testindex user
      '''
      es = _get_instance(hosts, profile)
  
      try:
          return es.indices.get_mapping(index=index, doc_type=doc_type)
      except elasticsearch.exceptions.NotFoundError:
          return None
      except elasticsearch.TransportError as e:
          raise CommandExecutionError("Cannot retrieve mapping {0}, server returned code {1} with message {2}".format(index, e.status_code, e.error))