Skip to content

Commit

Permalink
Merge pull request #182 from putchi/patch-1
Browse files Browse the repository at this point in the history
Update SearchableTrait.php
  • Loading branch information
nicolaslopezj authored Nov 5, 2018
2 parents cfd888b + c05fcbf commit 69dfeb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SearchableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function scopeSearchRestricted(Builder $q, $search, $restriction, $thresh

// Default the threshold if no value was passed.
if (is_null($threshold)) {
$threshold = $relevance_count / 4;
$threshold = $relevance_count / count($this->getColumns());
}

if (!empty($selects)) {
Expand Down

0 comments on commit 69dfeb1

Please sign in to comment.