def METHOD_NAME(queryset, fields, search):  # pragma: no cover
    """Perform query search by falling back to icontains."""
    all_queries = Q()
    for field in fields:
        all_queries = all_queries | Q(**{field + '__icontains': search})
    return queryset.filter(all_queries)