How to ignore accents in Azure Search?

前端 未结 1 985
南旧
南旧 2021-01-07 14:59

Does Azure Search support some way of ignoring accented characters? For example, if somebody searches for e it should include é characters

相关标签:
1条回答
  • 2021-01-07 15:32

    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.

    0 讨论(0)
提交回复
热议问题