code: def find_general_mappings(es_major_version):
      
  
      if es_major_version not in ES_SUPPORTED:
          print("Elasticsearch version not supported %s (supported %s)" % (es_major_version, ES_SUPPORTED))
          sys.exit(1)
  
      # By default all strings are not analyzed in ES < 6
      if es_major_version == '5':
          # Before version 6, strings were strings
          not_analyze_strings = """
          {
            "dynamic_templates": [
              { "notanalyzed": {
                    "match": "*",
                    "match_mapping_type": "string",
                    "mapping": {
                        "type":        "string",
                        "index":       "not_analyzed"
                    }
                 }
              }
            ]
          } """
      else:
          # After version 6, strings are keywords (not analyzed)
          not_analyze_strings = """
          {
            "dynamic_templates": [
              { "notanalyzed": {
                    "match": "*",
                    "match_mapping_type": "string",
                    "mapping": {
                        "type":        "keyword"
                    }
                 }
              }
            ]
          } """
  
      return json.loads(not_analyze_strings)
docs: Find the general mappings applied to all data sources
      :param es_major_version: string with the major version for Elasticsearch
      :return: a dict with the mappings (raw and enriched)