怎样完美设置sphinx匹配度

WBOY
Release: 2016-06-23 14:05:20
Original
1146 people have browsed it

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


回复讨论(解决方案)

用SphinxClient::setSortMode去试试。

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