1

以下对我有用(搜索“测试”也返回带有“测试”的字段): index : analysis : analyzer : default : type : snowball language : english 在我的 elasticsearch.yml 文件中设置时。

我想将它与我安装的 soundex 结合起来,所以我尝试了这个:

index : analysis : analyzer : default : type : custom tokenizer : standard filter : [standard, lowercase, soundex_filter, stemming] filter : soundex_filter : type : phonetic encoder : soundex replace : true stemming : type : snowball language : english

但没有成功,它们似乎都不起作用(没有词干或 soundex)

有人在组合过滤器方面取得了成功吗?

4

1 回答 1

1

对于那些感兴趣的人,这里是正确的语法 index : analysis : analyzer : default : type : custom tokenizer : standard filter : [standard, lowercase, stemming_filter, soundex_filter] filter : soundex_filter : type : phonetic encoder : soundex replace : false stemming_filter : type : snowball language : English

replace true 以某种方式覆盖了词干...

于 2015-01-13T03:28:35.313 回答