回复内容: 如何在php中使用sphinx 搜索服务呢
如果涉及到中文,那还是使用coreseek吧,coreseek其实就是sphinx+中文分词
coreseek全文检索的安装配置
require_once(dirname(__file__).'/sphinxclient.class.php');$sph = new sphinxclient()$sph->setserver('localhost', 9312);$sph->setconnecttimeout(5);$sph->setmatchmode(sph_match_any);$sph->setlimits(0, 1, 10000);$result = $sph->query($keyword, '*');$total = $result['total'];
