#### Category : laravel-scout

Since Laravel Scout doesn’t support more complex where clauses than simple numeric comparisons. I checked the source code and I found the following lines if (!empty($models =$model->getScoutModelsByIds($builder,$modelKeys))) { $instances =$instances->merge($models->load($searchable->getRelations($modelClass))); } The instances is what is returned from Algolia search, so for example the following search essentially returns the$instances variable. Mode::search(‘something’)->get(); ..

Read more

In my Laravel app I have a search function, in said search function the user can search by a query string and a selection of tags. An ordinary search query would produce a request like the following: https://events-portal.test/api/events/search?q=search where q is the query string. I also have a series of tags that users can select ..

Read more

I integrated Elasticsearch in my Laravel application (Laravel Scout with ErickTamayo/laravel-scout-elastic driver). Everything is works well. But I have one problem. For example, when I search phrase "HOU" , it finds result which contains word "altHOUgh". It is not normal in my opinion. How I can resolve it? Sourc..

Read more

I’m using the scout extended because i have multiple models in one index ( i’m using aggregators ) The aggregator is class AllPosts extends Aggregator { /** * The names of the models that should be aggregated. * * @var string[] */ protected $models = [ ‘AppThread’, ‘AppReply’, ‘AppProfilePost’, ]; protected$relations = [ ProfilePost::class ..

Read more

In My App i am using laravel scout for searching. For searching from single model i am using Model::search(‘absc’)->get(); But I want to search from all models how I can do it? Driver is Elastic search Sourc..

Read more

I am using laravel elastic search package. In Scout.php file. I am giving index laravel which is working with one model staff but not working with other models. scout.php ‘elasticsearch’ => [ ‘index’ => env(‘ELASTICSEARCH_INDEX’, ‘laravel’), ‘config’ => [ ‘hosts’ => [ env(‘ELASTICSEARCH_HOST’, ‘http://localhost’), ], ], In models i am using public function searchableAs() { ..

Read more

I am using laravel scout and driver is elastic search. Currently I am searching on one model AppModelsAdminStaff::search(‘com’)->get(); How i can search on multiple models i want to search globally on whole application Sourc..

Read more

i am trying to work with Algolia on LAREVEL 6 and I get this error AlgoliaAlgoliaSearchExceptionsUnreachableException : Impossible to connect, please check your Algolia Application Id. I don’t have an Algolia app id or secret , how can I get it please ? Thank you Source: Laravel Sta..

Read more