From 502f7a9f8672f70dd3b55422d508cbc9b56d4aa6 Mon Sep 17 00:00:00 2001 From: Daniel Klabbers Date: Mon, 10 Jan 2022 13:47:05 +0100 Subject: [PATCH] use partial match with weighting --- src/Api/Controllers/SearchController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Api/Controllers/SearchController.php b/src/Api/Controllers/SearchController.php index 453045b..7166b7d 100644 --- a/src/Api/Controllers/SearchController.php +++ b/src/Api/Controllers/SearchController.php @@ -56,10 +56,10 @@ class SearchController extends ListDiscussionsController if (! empty($search)) { $filterQuery - ->add($this->sentenceMatch($search)) - ->add($this->wordMatch($search, 'and')) - ->add($this->wordMatch($search, 'or')) -// ->add($this->partialMatch($search)) +// ->add($this->sentenceMatch($search)) +// ->add($this->wordMatch($search, 'and')) +// ->add($this->wordMatch($search, 'or')) + ->add($this->partialMatch($search)) ; }