狮身人面像 - 完全匹配! [英] Sphinx - Exact match!

查看:249
本文介绍了狮身人面像 - 完全匹配!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有另外一个问题!

我有一个索引

SPH_MATCH_ALL
SPH_RANK_SPH04



当我搜索单词ipad时,单词dissipador在单词IPAD之前就出现了,我怎样才能让ipad本身更加相关dissipADor?

解决方案


  1. 检查您使用的是sphinx的2.0.2或更高版本。版本2.0.1有一个错误,即使它们完全匹配,也不会将单个单词带到顶端。

  2. 如果您在该索引中为词法设置了词干,请考虑删除词干并将其添加为从第一个继承的单独索引。通过这种方式,当您搜索第一个索引时,它将只匹配整个单词,并且仍然可以使用第二个索引来指定偏好。


i have another question!

I have an index with

SPH_MATCH_ALL SPH_RANK_SPH04

and when i search for the word "ipad" the word "dissIPADor" is comming before the word IPAD alone, how can i make 'ipad' by itself, more relevant than "dissIPADor" ?

解决方案

  1. check that you are using version 2.0.2 or above of sphinx. Version 2.0.1 has a bug in it that doesn't bring single words to the top even though they are an exact match.
  2. If you have stemming set up for your morphology in that index, consider removing stemming and adding it as a separate index that inherits from the first one. This way when you search that first index it will only match whole words and you can still use the second index for partials.

这篇关于狮身人面像 - 完全匹配!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆