yabhq / laravel-scout-mysql-driver

Laravel Scout MySQL Driver
MIT License
522 stars 113 forks source link

Relevance as an attribute in model #53

Closed keradan closed 5 years ago

keradan commented 7 years ago

I am searching in few models, for example in tables 'posts' and 'categories'. In each separately relevance works good, but I get 2 collections, so order of rows depends on what collection I view first. Is there a way to get relevance attribute to sort merged collections by it?

AurelienMendes commented 5 years ago

I've just proposed a merge request to do that ... https://github.com/yabhq/laravel-scout-mysql-driver/pull/91