You are here

public function SearchApiMultiQuery::range in Search API Multi-Index Searches 7

Adds a range of results to return. This will be saved in the query's options. If called without parameters, this will remove all range restrictions previously set.

Parameters

int|null $offset: The zero-based offset of the first result returned.

int|null $limit: The number of results to return.

Return value

SearchApiMultiQueryInterface The called object.

Overrides SearchApiMultiQueryInterface::range

File

./search_api_multi.query.inc, line 670

Class

SearchApiMultiQuery
Standard implementation of SearchApiMultiQueryInterface.

Code

public function range($offset = NULL, $limit = NULL) {
  $this->options['offset'] = $offset;
  $this->options['limit'] = $limit;
  return $this;
}