Php 斯芬克斯完美匹配问题?

Php 斯芬克斯完美匹配问题?,php,sphinx,Php,Sphinx,我是斯芬克斯的新手 我只需要“one boy”单词匹配记录,哪种匹配模式正确 我已经在使用SPH\u MATCH\u PHRASE模式。但是它不起作用吗?如果你使用某种词干,你也会得到“一个男孩”的匹配。我想。。。 <?php include('sphinxapi.php'); $cl = new SphinxClient(); $cl->SetServer('localhost',9312); $cl->SetMatchM

我是斯芬克斯的新手


我只需要“
one boy
”单词匹配记录,哪种匹配模式正确


我已经在使用
SPH\u MATCH\u PHRASE
模式。但是它不起作用吗?

如果你使用某种词干,你也会得到“一个男孩”的匹配。我想。。。
  <?php    
    include('sphinxapi.php'); 
    $cl = new SphinxClient();  
    $cl->SetServer('localhost',9312);
    $cl->SetMatchMode(SPH_MATCH_EXTENDED2);
    $cl->SetArrayResult(true);
    $cl->SetLimits(0, 100);  
    //this is for perfect match mode
    $searchkey='one boy';
    $sphinxQry = '@(name) '. '"'.$searchkey.'"';
    $result = $cl->Query($sphinxQry,"abc_index");

   echo "<pre>";   

   print_r($result);  
   exit; ?>