From c38487eb3b8f2939ceeb74309cfbf194080c290e Mon Sep 17 00:00:00 2001 From: Kyle Huynh <7862086+kylehuynh205@users.noreply.github.com> Date: Thu, 9 Mar 2023 09:34:14 -0500 Subject: [PATCH] Update AdvancedSearchQueryTerm.php Fixed the use case of multiple condition and one of condition has keyword with multiple words --- src/AdvancedSearchQueryTerm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AdvancedSearchQueryTerm.php b/src/AdvancedSearchQueryTerm.php index b5aa2d8..161fc3b 100644 --- a/src/AdvancedSearchQueryTerm.php +++ b/src/AdvancedSearchQueryTerm.php @@ -302,7 +302,7 @@ class AdvancedSearchQueryTerm { return $value; } else { - return $value . " OR " . str_replace('"', "", trim($value)); + return "(" .$value . " OR " . str_replace('"', "", trim($value)) . ")"; } } if (!$this->getInclude()) {