[英]Multilingual search by searchkick
Under the hood, searchkick uses either the stemmer
token filter or the snowball
token filter .在幕后,searchkick 使用stemmer
提取器标记过滤器或snowball
标记过滤器。
Both of those filters only accept a single value in the language
parameter, so if you decide to specify a language, it's either one or the other.这两个过滤器都只接受language
参数中的一个值,因此如果您决定指定一种语言,它要么是一种语言,要么是另一种。
An alternative is to use different fields for different languages (eg title_en
for english and title_ru
for russian) and apply a different analyzer and language-specific stemmer for each.一个替代方案是使用不同语言的不同字段(例如title_en
英语和title_ru
对于俄语)和应用不同的分析仪和特定语言的词干为每个。 You can find a detailed example here .您可以在此处找到详细示例。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.