code: def find_mapping(es_url, index):
      
  
      mapping = None
  
      backend = find_perceval_backend(es_url, index)
  
      if backend:
          mapping = backend.get_elastic_mappings()
  
      if mapping:
          logging.debug("MAPPING FOUND:\n%s", json.dumps(json.loads(mapping['items']), indent=True))
      return mapping
docs: Find the mapping given an index