Home > Backend Development > PHP Tutorial > 怎么完美设置sphinx匹配度

怎么完美设置sphinx匹配度

WBOY
Release: 2016-06-13 11:45:45
Original
1042 people have browsed it

怎样完美设置sphinx匹配度
使用了sphinx全文检索,在搜索的时候排序成了问题,比如我搜索"十二生肖",出来的结果有"十二生肖快乐街","十二生肖守护神","新十二生肖","十二生肖",'十二生肖总动员',其实这是没错的,但是我想把"十二生肖"排在第一位,即完全等于的排在第一位,其它模糊匹配的往后排,不知sphinx里怎样设置.哪位帮忙
------解决方案--------------------
用SphinxClient::setSortMode去试试。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template