2015-05-23 34 views
2

命令我使用下面的查詢如何重量使用sphinxQL foolcode

$results = SphinxQL::create($conn)->select() 
    ->from('rt') 
    ->match('',$searchText,true) 
    ->where('CategoryID',$CatFilter,(int)$CategoryID)   
    ->orderBy('Level','DESC')   
    ->limit($start, $number)  
    ->enqueue(SphinxQL::create($conn)->query('SHOW META')) 
    ->executeBatch(); 

它按級別的結果,不考慮其他領域,如果級別相同。我想排序相同的水平WEIGHT()

我怎樣才能得到weight()功能在foolcode。

請給我建議。

回答

0

我發現這樣做easily-

$results = SphinxQL::create($conn) 
      ->query($sql)  
      ->executeBatch(); 

感謝的方式!