def get_higlighted(hit, field):
    """Returns higlighted text of field if search is higlighted."""
    if hasattr(hit.meta, 'highlight') and field in hit.meta.highlight:
        return hit.meta.highlight[field][0]
    return hit[field] if field in hit else ''
