Home  >  Article  >  Backend Development  >  sphinx的 SPH_MATCH_PHRASE 模式如何用

sphinx的 SPH_MATCH_PHRASE 模式如何用

WBOY
WBOYOriginal
2016-06-13 12:41:551043browse

sphinx的 SPH_MATCH_PHRASE 模式怎么用啊
sphinx的  SPH_MATCH_PHRASE 模式怎么用啊 他的query怎么写 
$cl->SetServer ( $host, $port );
$cl->SetMatchMode ( SPH_MATCH_PHRASE );
$cl->SetLimits ( 0, 20 );
$cl->SetWeights (array (10,1));
$res = $cl->Query ( 'dvd player', "search" );

我想查抄 dvd player 这个词 和 photo 这两个词 要怎么写啊  希望高手指点下啊 谢谢了

Statement:
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