How to ignore accents in Azure Search?

假如想象 提交于 2019-12-23 05:26:55

问题


Does Azure Search support some way of ignoring accented characters? For example, if somebody searches for e it should include é characters in the search. Or would we need to add some converting at the moment of building the Azure Search Index?

Any recomendations welcome, thanks.


回答1:


Yes. Please use the ASCII folding analyzer on your field. To do that, set the analyzer property on your field to

analyzer:"standardasciifolding.lucene"

Alternatively, use a language specific analyzer e.g. analyzer:"fr.microsoft". To learn more about analyzers in Azure Search take a look here.

Note: Different language analyzers treat diacritic marks differently, use the Analyze API to test analyzer behavior.



来源:https://stackoverflow.com/questions/35544784/how-to-ignore-accents-in-azure-search

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!