Custom limit

This commit is contained in:
James Cole 2017-10-30 16:25:39 +01:00
parent ce30b3c1a9
commit 60b7157a97
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -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);
}