From f21dc04a00027e890b233f6dbd9c48323a308f5f Mon Sep 17 00:00:00 2001 From: Daniel Klabbers Date: Thu, 16 Dec 2021 15:02:18 +0100 Subject: [PATCH] attempt to make partial match filter --- src/Api/Controllers/SearchController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Api/Controllers/SearchController.php b/src/Api/Controllers/SearchController.php index 9caad2b..8747180 100644 --- a/src/Api/Controllers/SearchController.php +++ b/src/Api/Controllers/SearchController.php @@ -57,9 +57,9 @@ class SearchController extends ListDiscussionsController if (! empty($search)) { $filterQuery - ->add($this->sentenceMatch($search)) - ->add($this->wordMatch($search)) - ->add($this->partialMatch($search)); + ->add($this->sentenceMatch($search), 'should') + ->add($this->wordMatch($search), 'should') + ->add($this->partialMatch($search), 'should'); } $builder = (new Builder($this->elastic))