Skip to content

Commit

Permalink
Increase table search results to 100 rather than 10 (#1753)
Browse files Browse the repository at this point in the history
10 search results was too limiting. This PR increases the results to
100.
  • Loading branch information
glennjacobs authored May 16, 2024
1 parent d0016a9 commit 367b42d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/admin/src/Support/Pages/BaseListRecords.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected function applySearchToTableQuery(Builder $query): Builder
$scoutEnabled &&
$isScoutSearchable
) {
$ids = collect(static::getModel()::search($search)->keys())->map(
$ids = collect(static::getModel()::search($search)->take(100)->keys())->map(
fn ($result) => str_replace(static::getModel().'::', '', $result)
);

Expand Down

0 comments on commit 367b42d

Please sign in to comment.