From 86c16476d52f6fdff9ccf5a69b9b5a164509a122 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 21 Aug 2019 20:54:58 +0200 Subject: [PATCH] #2940 --- src/app/Magic/Search.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/Magic/Search.php b/src/app/Magic/Search.php index 9e1893f..44f1df9 100644 --- a/src/app/Magic/Search.php +++ b/src/app/Magic/Search.php @@ -139,7 +139,7 @@ class Search ]; } - protected function _french() + protected static function _french() { return [ "filter" => [ @@ -190,6 +190,9 @@ class Search public static function query($term, $limit = null) { $index = config('cubist.internal_search_index'); + if (null === $limit) { + $limit = 50; + } // Set weight of each field $fields = ['short_title' => 4, 'long_title' => 1, 'keywords' => 5, 'description' => 1, 'main' => 2]; -- 2.39.5