code: def find_ds_mapping(data_source, es_major_version):
      
      mappings = {"raw": None,
                  "enriched": None}
  
      # Backend connectors
      connectors = get_connectors()
  
      try:
          raw_klass = connectors[data_source][1]
          enrich_klass = connectors[data_source][2]
      except KeyError:
          print("Data source not found", data_source)
          sys.exit(1)
  
      # Mapping for raw index
      backend = raw_klass(None)
      if backend:
          mapping = json.loads(backend.mapping.get_elastic_mappings(es_major_version)['items'])
          mappings['raw'] = [mapping, find_general_mappings(es_major_version)]
  
      # Mapping for enriched index
      backend = enrich_klass(None)
      if backend:
          mapping = json.loads(backend.mapping.get_elastic_mappings(es_major_version)['items'])
          mappings['enriched'] = [mapping, find_general_mappings(es_major_version)]
  
      return mappings
docs: Find the mapping given a perceval data source
  
      :param data_source: name of the perceval data source
      :param es_major_version: string with the major version for Elasticsearch
      :return: a dict with the mappings (raw and enriched)