使用coreseek做全文搜索,结果如下:
Array ( [error] => [warning] => [status] => 0 [fields] => Array ( [0] => content ) [ attrs] => 配列 ( ) [一致] => 配列 ( [27] => 配列 ( [重み] => 1 [attrs] => 配列 ( ) ) [28] => 配列 (重み] => 1 => 配列 ( ) ) [32] => 配列 ( [重み] => 1 => 配列 ( ) ) [34] =>重み] => 1 => 配列 ( ) ) [35] => 配列 ( [重み] => 1 => 配列 ( ) ) [38] =>重み] => 1 => 配列 ( ) ) [42] => 配列 ( [重み] => 1 => 配列 ( ) ) [45] =>重み] => 1 => 配列 ( ) ) [49] => 配列 ( [重み] => 1 => 配列 ( ) ) [52] =>重み] => 1 => 配列 ( ) ) [53] => 配列 ( [重み] => 1 => 配列 ( ) ) [55] =>重み] => 1 => 配列 ( ) ) [61] => 配列 ( [重み] => 1 => 配列 ( ) ) [70] =>体重] => 1 [属性] => 配列 ( ) ) [71] => 配列 ( [重み] => 1 [属性] => 配列 ( ) ) [72] => 配列 ( [重み] => 1 [属性] => 配列 ( ) ) [74] => 配列 ( [重み] => 1 [属性] => 配列 ( ) ) [75] => 配列 ( [重み] => 1 [属性] => 配列 ( ) ) [76] => 配列 ( [重み] => 1 [属性] => 配列 ( ) ) [82] => 配列 ( [重み] => 1 [属性] => 配列 ( ) ) ) [合計] => 1000 [合計_見つかった] => 2931 [時間] => 0.005 [単語] => Array ( [我] => Array ( [docs] => 2931 [hits] => 6974 ) ) )
合計は 1000 ですが、matches 一致結果だけ 20 条记录?
sphinxapi.php里置_maxmatches值
客户端调用:
$cl = new SphinxClient ();
$cl->setLimits(0, 500000);