GoLang SphinxClient::setLimits

request it (219)
GoLang replacement for PHP's SphinxClient::setLimits [edit | history]

Do you know a GoLang replacement for PHP's SphinxClient::setLimits? Write it!

PHP SphinxClient::setLimits

PHP original manual for SphinxClient::setLimits [ show | php.net ]


(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).



Result set offset.


Amount of matches to return.


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


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

Return Values

Returns TRUE on success or FALSE on failure.