问题
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