diff --git a/src/SearchDrivers/BaseSearchDriver.php b/src/SearchDrivers/BaseSearchDriver.php index d4f5557..926b440 100755 --- a/src/SearchDrivers/BaseSearchDriver.php +++ b/src/SearchDrivers/BaseSearchDriver.php @@ -193,6 +193,11 @@ abstract class BaseSearchDriver implements SearchDriverInterface { $matcher = new $matcherClass($multiplier); - return $matcher->buildQueryString($searchField, $this->searchString); + return $matcher->buildQueryString($this->coalesce($searchField), $this->searchString); + } + + private function coalesce($field) + { + return "COALESCE($field, '')"; } }