Update AdvancedSearchQueryTerm.php
Replaced ! with - for "is not" after further testings
This commit is contained in:
parent
b7d439e08f
commit
5756be015d
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue