SphinxClient::setLimits
(PECL sphinx >= 0.1.0)
SphinxClient::setLimits — Set offset and limit of the result set
Описание
public bool SphinxClient::setLimits
( int $offset
, int $limit
[, int $max_matches= 0
[, int $cutoff= 0
]] )
Список параметров
-
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 в случае возникновения ошибки.