Escape all the special characters in the catalog names
If a category has a special character in the name it's impossible to see any products in this category or it's ascenders because this query breaks Solr.
@@ -51,7 +51,7 @@ class SolrProductSearchHandler(SearchHandler):
# 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])
+ '"%s"' % sqs.query.clean(c.full_name) for c in self.categories])
sqs = sqs.narrow('category_exact:(%s)' % pattern)
return sqs
