Questions tagged [laravel-scout]

A Laravel package that provides a simple, driver based solution for adding full-text search to models.

Laravel Scout provides a simple, driver based solution for adding full-text search to Laravel's Eloquent models. Using model observers, Scout will automatically keep your search indexes in sync with your Eloquent records.

Documentation is available at https://laravel.com/docs/5.4/scout

This is not a package which is included in the default installation of Laravel so it needs to be installed independently.

225 questions
0
votes
1 answer

How to make search more effective in laravel scout and elastic search?

For the experiment, I am using both algolia and elastic search I see that algolia is searching nicely even if spellings are wrong but elastic search is searching only if word spelling is complete and correct. How I can make elastic search more…
0
votes
1 answer

How to use whereNot in laravel scout

I want to use whereNot in laravel scout search but it is not working. although where clause is working fine Address::search("{$address->suburb}")->whereNot('id',$address->id)->get(); How i can do that?
Bilal Arshad
  • 531
  • 3
  • 11
  • 33
0
votes
1 answer

index not found exception in laravel elastic search using scout package

i have installed tamayo/laravel-scout-elastic package of laravel and i did import my products table records but whenever i search anything then i am getting "index not found exception". below is my configuration of scout.php file `'elasticsearch' =>…
Naveed Ali
  • 1,043
  • 7
  • 15
0
votes
1 answer

Laravel Scout and MeiliSearch integration in Laradock

I'm trying to integrate MeiliSearch in my Laravel project using their official package for Laravel scout. Am using Laradock as a development environment and it has a pre-installed Meilisearch docker image. I couldn't find anything that explains how…
kenean50
  • 518
  • 5
  • 13
0
votes
1 answer

laravel scout not working with nWidart modules package

I use nWidart module package (https://github.com/nWidart/laravel-modules/issues/499) and Laravel scout for full text search. Laravel scout import model with this command php artisan scout:import "App\Product" when model created in App directory…
Mehrdad Masoumi
  • 264
  • 1
  • 15
0
votes
1 answer

Laravel-scout : ElasticSearch with Translatable Entities (astrotomic/laravel-translatable)

I'm trying to use "babenkoivan/scout-elasticsearch-driver" with "astrotomic/laravel-translatable", but i don't understand how I could index the translated words. My Model looks like : namespace App\Models; use…
Noweh
  • 583
  • 5
  • 16
0
votes
1 answer

Algolia API request to add attribute for faceting with PHP laravel

I'm looking for some API request from PHP Laravel backend, which will add some new attribute to all my indices (including replicas) to attributes for faceting. Is there any option for this? Exact case: In e-commerce administration I create new…
Michal
  • 35
  • 7
0
votes
1 answer

Laravel scout Elasticsearch error 500 "all shards failed"

Whenever I try to use Elasticsearch via Laravel's scout package, I get this error. Everything works on my localhost since I don't have to set up any node or whatsoever for elastic search but when I try to do the same thing on my remote server, this…
Dastan
  • 176
  • 3
  • 15
0
votes
1 answer

Elasticsearch service fail after deleting /var/lib/elasticsearch

As the title says, I have deleted /var/lib/elasticsearch and since then the service refuses to restart Here's the log: [2020-11-07T01:29:17,855][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [testNode] uncaught exception in thread…
Dastan
  • 176
  • 3
  • 15
0
votes
0 answers

Laravel - searching by multiple tags and a string

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…
Jesse Luke Orange
  • 1,949
  • 3
  • 29
  • 71
0
votes
0 answers

Elasticsearch with laravel inaccurate search

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…
0
votes
3 answers

Algolia not importing my records laravel scout

I am using laravel scout to implement my text search. I followed all the configuration instructions and imported the records. When I do that i get this success message Imported [App\Thread] models up to ID: 8 but in algolia I can't see my records…
gloria00
  • 265
  • 2
  • 15
0
votes
0 answers

Laravel Algolia Scout, whereIn on relationships

I am working on a Laravel project. I am using Scout based on Algolia. But I struggling to apply whereIn on the relationships. I have 2 models as follow. Place.php class Place extends Model { use Searchable, Localizable; protected $with = [ …
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
0
votes
1 answer

Group algolia results by their duplicates

Hi I'm currently using Laravel-scout search, Is there a way to get and group the results through their duplicates but with large data? Example i have a list of country New york new York New Y0rk America america AmericA Japan I want to get the data…
hihihihi
  • 68
  • 1
  • 5
  • 29
0
votes
1 answer

Laravel Scout error "Undefined class constant 'VERSION'" after installing Guzzle

I'm working on a project using Laravel 5.6.* and Laravel Scout ^7.1 with Algolia, and I just installed Guzzle 7.0. Scout and Algolia were working fine before, but now when I try to save a model I'm getting an error in Sentry that looks like…