From 23074a3a0cd34f702d5ebdf8e5a17eb5024c9e22 Mon Sep 17 00:00:00 2001 From: Daniel Klabbers Date: Thu, 23 Dec 2021 13:07:00 +0100 Subject: [PATCH] Revert "attempt to make partial match filter" This reverts commit f21dc04a00027e890b233f6dbd9c48323a308f5f. --- 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 8747180..9caad2b 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), 'should') - ->add($this->wordMatch($search), 'should') - ->add($this->partialMatch($search), 'should'); + ->add($this->sentenceMatch($search)) + ->add($this->wordMatch($search)) + ->add($this->partialMatch($search)); } $builder = (new Builder($this->elastic))