def _make_singular_filter(filter_name: str, filter_val):
    """Create a elasticsearch filter for a single
       filter_name, filter_val pair. Note filter_val can
       be a list and an OR will be applied

    Args:
        filter_name (str): Name of filter
        filter_val (str | str[]): Value of filter

    Returns:
        Dict: Valid elasticsearch filter params
    """
    if isinstance(filter_val, list):
        filters = [_make_singular_filter(filter_name, val) for val in filter_val]
        return {"bool": {"should": filters}}
    return {"match": {filter_name: filter_val}}