Sphinx-如何在PHP API中使用扩展查询语法

Sphinx-如何在PHP API中使用扩展查询语法,php,api,full-text-search,sphinx,Php,Api,Full Text Search,Sphinx,有人能解释一下我是如何让Sphinx与扩展查询语法匹配的吗?这是我的代码 $cl = new SphinxClient(); $cl->SetServer($CONF['sphinx_host'], $CONF['sphinx_port']); $cl->SetSortMode(SPH_MATCH_ANY); $cl->SetFieldWeights ( array ( "title" => 100, "description" =>

有人能解释一下我是如何让Sphinx与扩展查询语法匹配的吗?这是我的代码

    $cl = new SphinxClient();
    $cl->SetServer($CONF['sphinx_host'], $CONF['sphinx_port']);
    $cl->SetSortMode(SPH_MATCH_ANY);
    $cl->SetFieldWeights ( array ( "title" => 100, "description" => 90 ) );
    $cl->SetMatchMode(SPH_MATCH_EXTENDED2);
    $cl->SetRankingMode(SPH_RANK_SPH04);
    $cl->SetLimits(0, 1000);

    $q = 'She sells sea shells';
    $result = $cl->Query($q);
如何执行短语匹配

 $q = '"She sells sea shells"';
 $q = '"She sells" sea shells';
只需将查询放在引号中(或只是查询的一部分!)