Fix 'is not' search not working for keywords containing more than one word

This commit is contained in:
Amy Li 2023-03-14 10:38:31 -04:00
parent 9320116290
commit 9625a0a6a7

View file

@ -302,7 +302,8 @@ class AdvancedSearchQueryTerm {
return $value; return $value;
} }
else { else {
return "(" .$value . " OR " . str_replace('"', "", trim($value)) . ")"; $isNot = $this->getInclude() ? "" : "!";
return $isNot . "(" .$value . " OR " . str_replace('"', "", trim($value)) . ")";
} }
} }
if (!$this->getInclude()) { if (!$this->getInclude()) {