I have a Laravel application. I installed elasticsearch server and implemented it to laravel using scout and tamayo/laravel-scout-elastic.
All is working almost perfectly. I have two questions that I can't find the answer to.
How to order the output of the results by most words matching. Or
_score of the elastic resultsHow to combine two types of the same index? I have index by the name of
newshow to combineworld newsandsports news?
I am using this method to make the search:
$searched = Model::search($q)->get();
In the model I've included the Scout
use Laravel\Scout\Searchable; and use Searchable;