Closed alfee closed 3 years ago
Hey @alfee,
First of all, please update the package and the dependencies (especially elastic-adapter
). I've improved error handling recently, so it might help you to debug the issue. Second, check your Scout config: if you have queues enabled, then confirm that workers are running. Finally, you didn't mention how you created the index and what mapping you have.
Hi @babenkoivan,
Thank you for your reply.
I did composer update
and auto-sync is working fine.
Thanks again.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days
Describe the bug
I'm a beginner for Laravel Scout and Elasticsearch, and I tried to introduce Elasticsearch to my project. The search function looks to work fine after
php artisan scout:import 'App\Models\Post'
, but a record isn't added to Index when I created a new record.Scout document says
Once you have added the Laravel\Scout\Searchable trait to a model, all you need to do is save or create a model instance and it will automatically be added to your search index.
https://laravel.com/docs/master/scout#adding-records I wonder why my new record isn't added to Index.My Model
My Controller
Should I make other settings for Elasticsearch and Scout or code to add a record to Index?