Developer forum

Forum » Ecommerce - Standard features » Accent insensitive product search

Accent insensitive product search

Cristina Santos
Reply

Our product search should be accent insensitive as querying for "jamón" or "jamon" should return all items matching wether "jamon" or "jamón".

We're using Dynamicweb 9.9.6


Replies

 
Steffen Kruse Hansen Dynamicweb Employee
Steffen Kruse Hansen
Reply

Hi Cristina,

You need to set up a custom field type with the UnaccentedWordAnalyzer in the index. 

https://doc.dynamicweb.com/documentation-9/indexing/indexing-search/indexes#sideNavTitle1-4-4

When you have done that you should be able to create a new custom field in the index, which should then use the new field type. That way the data in the index will pass through the analyzer, and "jamón" should be stored as "jamon", and the same will happen with your search terms. 
I can't say exactly how you make it work with your freetext search, because it depends on the actual implementation, but if you are using a SummaryField for your freetext, you just need to add the "UnaccentedName" field, to your SummaryField.

I hope it answers the question.

Best regards,

Steffen

 
Cristina Santos
Reply

I understand this works for single fields but what about summary fields?

 

You must be logged in to post in the forum