SphinxClient::setIndexWeights
SphinxClient::setMatchMode
SphinxClient
PHP Manual

# SphinxClient::setLimits

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

SphinxClient::setLimits — Set offset and limit of the result set

### Opis

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

### Parametry

`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.

### Zwracane wartości

Zwraca `TRUE` w przypadku powodzenia, `FALSE` w przypadku błędu.

SphinxClient::setIndexWeights
SphinxClient::setMatchMode
SphinxClient
PHP Manual