def get_hit_fields(es_resp_obj_dict):
    """Returns a list of they fields in an elasticsearch search response
        hit object."""
    if es_resp_obj_dict['hits']['hits']:
        fields = [key for key in es_resp_obj_dict['hits']['hits'][0]['_source'].keys()]
    else:
        return []
    return fields