Skip to content

Commit 7bcaba0

Browse files
authored
Fix/scout builder show limit as total (#191)
1 parent 887ce27 commit 7bcaba0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Query/ScoutBuilder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ public function search(array $parameters = [])
5353
$this->applyInstructions($parameters['instructions']);
5454
});
5555

56-
$defaultLimit = $this->resource->defaultLimit ?? 50;
57-
$this->queryBuilder->take($parameters['limit'] ?? $defaultLimit);
58-
5956
$this->queryBuilder
6057
->query(function (Builder $query) use ($parameters) {
6158
app()->make(QueryBuilder::class, ['query' => $query, 'resource' => $this->resource])
@@ -68,6 +65,7 @@ public function search(array $parameters = [])
6865
'sorts',
6966
'text',
7067
'limit',
68+
'page',
7169
])
7270
->all()
7371
);

0 commit comments

Comments
 (0)