Adding line to remove soft deleted objects from returned results, so it falls in line with using eloquent

This commit is contained in:
Jake Boyles
2016-01-15 15:26:46 -05:00
parent b7b0344fb2
commit 97fdd406e3

View File

@ -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);