I have integrated elastic search in laravel with help of below tutorial.
https://appdividend.com/2018/06/30/laravel-elasticsearch-tutorial-example/
According to this tutorial search with single fields is working fine. i.e.
// Article table has column 'title','body' and 'tags'.
Route::get('/search', function() {
$articles = Article::searchByQuery(['match' => ['title' => 'Test']]);
return $articles;
});
But i want to search with multiple column values like 'title' ,'body' etc.
Anyone suggest an idea how to search with multiple column?