def METHOD_NAME(self, index):
    """Get mappings from ES."""
    mappings = {}
    try:
        index_alias = current_search.aliases.get(index)
        index_file_name = list(index_alias.values())[0]
        data = jsonref.load(open(index_file_name))
        mappings = self.get_properties(
            data.get('mappings').get('properties'))
    except Exception:
        pass
    return mappings