Closed reminisc3 closed 3 months ago
be explicit about "fails to be generated"?
We are using it with queues in a production environment without a problem in combination with laravel/horizon
I am using Horizon as well to monitor the queue. I can see that the queue jobs are being processed successfully, however, I am not seeing any index files being created in the storage folder. I am not seeing any errors or exceptions either when creating/updating models either.
Am I correct in assuming that the index files are supposed to be generated automatically when creating or updating models with the Searchable trait?
Thanks
@reminisc3 your assumption is correct. that sounds like a misconfiguration. maybe this helps: https://github.com/teamtnt/laravel-scout-tntsearch-driver/issues/61#issuecomment-401409268
otherwise are you able to provide more information about your setup?
Hi,
After doing some more testing, here are my findings:
php artisan scout:import App\\User
results in no index file being generatedphp artisan tntsearch:import App\\User
results in the index file being successfully generatedI am not seeing any issues with the config, and here is an example of a successful queue worker where no index file was generated:
I am ok with running tntsearch:import when bootstrapping my app for all my models beforehand - but not sure if this is expected behavior.
Some screenshots of my config:
//horizon.php
//scout.php
//queue.php
Thanks
Hi,
Just wondering if this package supports queues? I am using Laravel 5.7 with Redis and noticed that the index files fail to be generated whenever SCOUT_QUEUE=true. When I set to false and use scout:import or update a model with the Searchable trait, the index files are generated.
Thanks!