Skip to main content
1 of 2
arseny
  • 181
  • 1
  • 11

SXA Search is unable to return result with '/' and/or '&' in Facet value

I have a sxa search component with multiple facets. In one of the facets, there is an entry that has a filter value of "Corporate / M & A". It yield no result when I choose the facet with that value. enter image description here

I did play around on the filter text value and found out that the issue was the special characters '/' and '&'. Removing those characters yields results.

Is this an expected behavior in sxa search component? Would there be a work around for this scenario?

However. I did tried use the same search text to query directly in Solr and there was no issue. I was able to pull records.

sample solr query: solr_field:"Corporate / M & A" AND _language:"en"

Thanks in advance.

arseny
  • 181
  • 1
  • 11