def get_search_queryset(self):
        sqs = super(SolrProductSearchHandler, self).get_search_queryset()
        if self.categories:
            # We use 'narrow' API to ensure Solr's 'fq' filtering is used as
            # opposed to filtering using 'q'.
            pattern = ' OR '.join([
                '"%s"' % c.full_name for c in self.categories])
            sqs = sqs.narrow(pattern % 'category_exact:(%s)')
        return sqs


# Deprecated name. TODO: Remove in Oscar 1.2
dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/apps/catalogue/search_handlers.py/SolrProductSearchHandler.get_search_queryset/swapped operands of `%`