Thursday, May 10, 2018

Sitecore Experience Commerce - Brand facet is splitting text by spaces

During an implementation of a product list in Experience Commerce, I found that the brand facet was splitting the brand's text at the occurrence of spaces. So a brand of "My Brand" would appear as two separate facet items: "my" and "brand".

The field was set to "UN_TOKENIZED" which should have not allowed this to happen. Nevertheless, the fix is to change the fields returnType from "test" to "string". Then rebuild the web and master indexes for your Sitecore instance. Below is a patch file to make this change (for SOLR search provider).


No comments:

Post a Comment