Update AdvancedSearchQueryTerm.php

Fixed the use case of multiple condition and one of condition has keyword with multiple words
This commit is contained in:
Kyle Huynh 2023-03-09 09:34:14 -05:00 committed by GitHub
parent 1805404b00
commit c38487eb3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()) {