From 97fdd406e36b75ab41976a311c2be71639f729f5 Mon Sep 17 00:00:00 2001 From: Jake Boyles Date: Fri, 15 Jan 2016 15:26:46 -0500 Subject: [PATCH] Adding line to remove soft deleted objects from returned results, so it falls in line with using eloquent --- src/SearchDrivers/BaseSearchDriver.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SearchDrivers/BaseSearchDriver.php b/src/SearchDrivers/BaseSearchDriver.php index 2c96b75..eccd645 100755 --- a/src/SearchDrivers/BaseSearchDriver.php +++ b/src/SearchDrivers/BaseSearchDriver.php @@ -99,6 +99,7 @@ abstract class BaseSearchDriver implements SearchDriverInterface { $this->query = \DB::table($this->table) ->select($this->columns) + ->where('deleted_at',NULL) ->addSelect($this->buildSelectQuery($this->searchFields)) ->orderBy($this->relevanceFieldName, 'desc') ->having($this->relevanceFieldName, '>', 0);