nicolaslopezj / searchable

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

determine relevance based on relationship: e.g. most recent date or count #207

Open wivaku opened 4 years ago

wivaku commented 4 years ago

Is there a way to the following influence the relevance? E.g. the “Peter” that I visited most often (count of related Visits), or most recently, should get a higher relevance than the “Peter” that I hardly ever visit. So take into account count of related Models or aspect of them (date, or other methods to determine relevancy, e.g. income amount).