es.search({size: 0, suggest: ...}
使用完成映射在可以具有非拉丁变音符号(重音字符,如 â、ê 等)的字段上使用完成映射,自动完成工作正常。
我正在使用创建映射mongoosastic
。我需要能够使用诸如asciifolding
建议之类的东西或在响应中添加其他字段。
我有这些领域:
name
这是带有变音符号的那个。nameSearch
这是name
拉丁化的(没有变音符号/重音字符)。
我需要的是继续完成建议,name
但处理方式a
相同â
(和其他方式)。
在我需要的回应name
中。不是nameSearch
。