【问题标题】:Custom analyzer elasticsearch soundex plus snowball自定义分析器 elasticsearch soundex 加雪球
【发布时间】:2015-01-12 22:33:13
【问题描述】:

以下内容对我有用(搜索“测试”也会返回带有“测试”的字段): 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)

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

【问题讨论】:

    标签: search elasticsearch soundex snowball


    【解决方案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 以某种方式覆盖了词干...

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-08-08
      • 1970-01-01
      • 1970-01-01
      • 2016-01-12
      • 2014-10-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多