diff --git a/src/Search/Tags.php b/src/Search/Tags.php index 4c20b88a37..e3fc2f0e73 100644 --- a/src/Search/Tags.php +++ b/src/Search/Tags.php @@ -30,9 +30,7 @@ public function results() $builder = Search::index($this->params->get('index')) ->ensureExists() ->search($query) - ->withData($supplementData) - ->limit($this->params->get('limit')) - ->offset($this->params->get('offset')); + ->withData($supplementData); $this->querySite($builder); $this->queryStatus($builder); diff --git a/src/Tags/Concerns/GetsQueryResults.php b/src/Tags/Concerns/GetsQueryResults.php index e2f687f77f..7a3d1bd0cd 100644 --- a/src/Tags/Concerns/GetsQueryResults.php +++ b/src/Tags/Concerns/GetsQueryResults.php @@ -10,15 +10,15 @@ protected function results($query) { $this->setPaginationParameterPrecedence(); - if ($paginate = $this->params->get('paginate')) { + if ($paginate = $this->params->int('paginate')) { return $this->paginatedResults($query, $paginate); } - if ($limit = $this->params->get('limit')) { + if ($limit = $this->params->int('limit')) { $query->limit($limit); } - if ($offset = $this->params->get('offset')) { + if ($offset = $this->params->int('offset')) { $query->offset($offset); }