From 5756be015d08f8e039b819b7f7fcbaf10fb7ea5b Mon Sep 17 00:00:00 2001 From: Kyle Huynh <7862086+kylehuynh205@users.noreply.github.com> Date: Wed, 15 Mar 2023 23:06:07 -0400 Subject: [PATCH] Update AdvancedSearchQueryTerm.php Replaced ! with - for "is not" after further testings --- src/AdvancedSearchQueryTerm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AdvancedSearchQueryTerm.php b/src/AdvancedSearchQueryTerm.php index 53d1127..eee9e41 100644 --- a/src/AdvancedSearchQueryTerm.php +++ b/src/AdvancedSearchQueryTerm.php @@ -296,7 +296,7 @@ class AdvancedSearchQueryTerm { // Case 1: if keyword contains one word or a phrase if(strpos(trim($value), ' ') !== false) { // add Or for the search case "scarborough bulletin" show no results - $isNot = $this->getInclude() ? "" : "!"; + $isNot = $this->getInclude() ? "" : "-"; if (substr_count($value, '\"') == 2) { $value = str_replace('\"', "", trim($value)); return $isNot . $value;