Algolia: searching multiple indices in Laravel
问题 I would like to set up algolia to search multiple indices in Laravel, using something simple like this. Route::get('/search/{query}', function ($query) { $queries = [ [ 'indexName' => 'movies_index', 'query' => $query, 'hitsPerPage' => 3 ], [ 'indexName' => 'directors', 'query' => $query, 'hitsPerPage' => 3, ], [ 'indexName' => 'screenwriters', 'query' => $query, 'hitsPerPage' => 10 ] ]; var_dump($queries);}); But I'm a beginner in laravel and algolia as well so I'm not entirely sure how to