You are here

public function QueryInterface::range in Search API 8

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

$this

1 method overrides QueryInterface::range()
Query::range in src/Query/Query.php
Adds a range of results to return.

File

src/Query/QueryInterface.php, line 231

Class

QueryInterface
Represents a search query on a Search API index.

Namespace

Drupal\search_api\Query

Code

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