SphinxClient
php 手册 | 脚本学堂 | 脚本编程 | 网站编程 | 系统管理 | 服务器配置 | 数据库管理 | Php教程 | python教程 | 正则表达式 | 批处理脚本 | Centos教程 | Linux基础教程

SphinxClient::setLimits

(PECL sphinx >= 0.1.0)

SphinxClient::setLimitsSet offset and limit of the result set

说明

public bool SphinxClient::setLimits ( int $offset , int $limit [, int $max_matches=0 [, int $cutoff=0 ]] )

Sets offset into server-side result set and amount of matches to return to client starting from that offset (limit ). Can additionally control maximum server-side result set size for current query (max_matches ) and the threshold amount of matches to stop searching at (cutoff ).

参数

offset

Result set offset.

limit

Amount of matches to return.

max_matches

Controls how much matches searchd will keep in RAM while searching.

cutoff

Used for advanced performance control. It tells searchd to forcibly stop search query once cutoff matches have been found and processed.

返回值

如果成功则返回 TRUE,失败则返回 FALSE


SphinxClient
php 手册 | 脚本学堂 | 脚本编程 | 网站编程 | 系统管理 | 服务器配置 | 数据库管理 | Php教程 | python教程 | 正则表达式 | 批处理脚本 | Centos教程 | Linux基础教程