Update AdvancedSearchQueryTerm.php

Replaced ! with - for "is not" after further testings
This commit is contained in:
Kyle Huynh 2023-03-15 23:06:07 -04:00 committed by GitHub
parent b7d439e08f
commit 5756be015d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -296,7 +296,7 @@ class AdvancedSearchQueryTerm {
// Case 1: if keyword contains one word or a phrase // Case 1: if keyword contains one word or a phrase
if(strpos(trim($value), ' ') !== false) { if(strpos(trim($value), ' ') !== false) {
// add Or for the search case "scarborough bulletin" show no results // add Or for the search case "scarborough bulletin" show no results
$isNot = $this->getInclude() ? "" : "!"; $isNot = $this->getInclude() ? "" : "-";
if (substr_count($value, '\"') == 2) { if (substr_count($value, '\"') == 2) {
$value = str_replace('\"', "", trim($value)); $value = str_replace('\"', "", trim($value));
return $isNot . $value; return $isNot . $value;