def filter_queryset(self, request, queryset, view):
        search_enabled = getattr(settings, 'WAGTAILAPI_SEARCH_ENABLED', True)

        if 'search' in request.GET:
            if not search_enabled:
                raise BadRequestError("search is disabled")

            # Searching and filtering by tag at the same time is not supported
            if getattr(queryset, '_filtered_by_tag', False):
                raise BadRequestError("filtering by tag with a search query is not supported")

            search_query = request.GET['search']

            sb = get_search_backend()
            queryset = sb.search(search_query, queryset)

        return queryset
Get or Create Days based on schedule type and set of Days
dataset/ETHPy150Open torchbox/wagtail/wagtail/contrib/wagtailapi/filters.py/SearchFilter.filter_queryset--crossover with--dataset/ETHPy150Open pinax/symposion/symposion/schedule/forms.py/ScheduleSectionForm._build_days