使用相同的发音弹性搜索来匹配单词 [英] To match words with the same pronounciation elasticsearch
本文介绍了使用相同的发音弹性搜索来匹配单词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想匹配拼写不同的单词,但具有相同的发音。像邮件和男,飞机和平原。我们可以在弹性搜索中进行这样的匹配吗?
I would like to match words that spells different, but have the same pronounciation. Like "mail" and "male", "plane" and "plain". Can we do such a matching in elasticsearch?
推荐答案
您可以使用语音令牌过滤器进行此目的。语音令牌过滤器是一个插件,它需要单独的安装和设置。你可以利用这个博客,详细说明如何设置和使用语音令牌过滤器。
You can use the phonetic token filter for this purpose. Phonetic token filter is a plugin and it requires separate installation and setup. You can make use of this blog which explains in detail, how to set up and use phonetic token filter.
这篇关于使用相同的发音弹性搜索来匹配单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文