【发布时间】:2017-12-14 19:32:13
【问题描述】:
有没有办法只在某些列上使用模糊性进行cross_field 搜索?例如:
match against:
- name (fuzziness=1)
- country (fuzziness=0)
所以搜索“John USA”会匹配,搜索“Jon USA”会匹配,但搜索“John AUS”不会匹配。这将如何实现?
【问题讨论】:
-
没有人回答关于 StackOverflow 的 ES 问题吗?是气馁还是他们的论坛上的东西(我也没有发现他们的论坛有帮助)。
-
有时人们需要更长的时间才能回答,你需要耐心;-)
-
如official documentation中所述:
The fuzziness parameter cannot be used with the cross_fields type.
标签: python elasticsearch lucene elasticsearch-plugin