Sphinx - Exact match!

我的梦境 提交于 2019-12-24 20:22:22

问题


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:


  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.


来源:https://stackoverflow.com/questions/5276903/sphinx-exact-match

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!