API Reference / API Parameters / paginationLimitedTo
Jan. 14, 2019

paginationLimitedTo

Type: integer
Engine default: 1000
Parameter syntax
'paginationLimitedTo' => number_of_records

Can be used in these methods:

About this parameter

Set the maximum number of hits accessible via pagination.

We set the max number of hits, not max number of pages. Works with the page and hitsByPage settings to establish the full paging logic.

Usage notes:

  • This can be set at indexing time, to define a default.

  • By default, this parameter is set to 1000 to guarantee good performance.

  • We recommend that you keep the default value to guarantee excellent performance. Increasing the pagination limit will have a direct impact on the performance of search queries. A too high value will also make it very easy for anyone to retrieve (“scrape”) your entire dataset.

Examples

Set pagination limit

1
2
3
$index->setSettings([
  'paginationLimitedTo' => 1000
]);

Did you find this page helpful?