From 60b7157a97352b2d58415a7f0ffb6bed8fb4a5aa Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 30 Oct 2017 16:25:39 +0100 Subject: [PATCH] Custom limit --- app/Http/Controllers/SearchController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index 0ba7e68a7b..ac51869007 100644 --- a/app/Http/Controllers/SearchController.php +++ b/app/Http/Controllers/SearchController.php @@ -88,7 +88,7 @@ class SearchController extends Controller if (!$cache->has()) { // parse search terms: $searcher->parseQuery($fullQuery); - $searcher->setLimit(20); + $searcher->setLimit(intval(env('SEARCH_RESULT_LIMIT', 50))); $transactions = $searcher->searchTransactions(); $cache->store($transactions); }