nicolaslopezj / searchable

A php trait to search laravel models
MIT License
2.01k stars 291 forks source link

Update SearchableTrait.php #182

Closed putchi closed 5 years ago

putchi commented 5 years ago

threshold should be divided by total number of columns in order to keep the spread and relevance. this is important when there are a lot of columns in the select query (or a very big table with a lot of columns).

@nicolaslopezj please accept this PR.