0

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 for the given index, it keeps saying I have 0 records. I am currently using my admin APIkey.

How do I fix that?

gloria00
  • 265
  • 2
  • 15

3 Answers3

2

I used to have this problem. it is weird but after i did:

php artisan cache:clear
php artisan route:clear
php artisan config:cache
composer dumpautoload

I can do php artisan scout:import without any problem. But when i switched the driver, it didn't work again, and i had to do the 4 steps above again to fix it.

Naveed Ali
  • 1,043
  • 7
  • 15
  • have you installed the scout package also? – Naveed Ali Aug 29 '20 at 10:45
  • clear the index on algolia and then try again importing – Naveed Ali Aug 29 '20 at 10:46
  • For others using Algolia wherein an index is created on import but zero records are imported wherein the above fix doesn't work, check your queue connection settings and possibly disable the queue for testing to see if that's the issue. In my case, incomplete queue config was causing records not to get imported without any warnings, e.g. the import was pushing to the queue and getting stuck there w/o errors. – Fujisan Jan 22 '23 at 20:43
2

I used to have the same problem. I was using sqs for queue driver and i had to run queue worker to function the importing to algolia.

Tithira
  • 634
  • 9
  • 22
0

i had this problem with in my local , so i runned meilisearch without master key, and it fixed