Skip to content

Commit

Permalink
Use the searchParameters also for paging.
Browse files Browse the repository at this point in the history
  • Loading branch information
Benno Eggnauer committed Aug 15, 2023
1 parent 17c895c commit e41ee53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function paginate(int $pageSize = 20, string $pageName = 'page'): Paginat
*/
$realPageSize = $pageSize + 1;

$searchResults = $this->siteSearch->search($this->query, $realPageSize, $offset);
$searchResults = $this->siteSearch->search($this->query, $realPageSize, $offset, $this->searchParameters);

return new Paginator(
$searchResults->hits,
Expand Down

0 comments on commit e41ee53

Please sign in to comment.