PHP
downloads | documentation | faq | getting help | mailing lists | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SphinxClient::setMatchMode> <SphinxClient::setIndexWeights
Last updated: Fri, 14 Nov 2008

view this page in

SphinxClient::setLimits

(No version information available, might be only in CVS)

SphinxClient::setLimitsSet offset and limit of the result set

Описание

public bool SphinxClient::setLimits ( int $offset , int $limit [, int $max [, int $cutoff ]] )

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 в случае возникновения ошибки.



add a note add a note User Contributed Notes
SphinxClient::setLimits
There are no user contributed notes for this page.

SphinxClient::setMatchMode> <SphinxClient::setIndexWeights
Last updated: Fri, 14 Nov 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites