You are here

public function SearchApiQueryInterface::range in Search API 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

SearchApiQueryInterface The called object.

1 method overrides SearchApiQueryInterface::range()
SearchApiQuery::range in includes/query.inc
Adds a range of results to return.

File

includes/query.inc, line 184
Contains SearchApiQueryInterface and SearchApiQuery.

Class

SearchApiQueryInterface
Interface representing a search query on an Search API index.

Code

public function range($offset = NULL, $limit = NULL);