GDes00
GDes00

Reputation: 285

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

How do I fix that?

Upvotes: 2

Views: 1862

Answers (3)

Masoud Hosseini
Masoud Hosseini

Reputation: 46

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

Upvotes: -1

Tithira
Tithira

Reputation: 662

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.

Upvotes: 4

Naveed Ali
Naveed Ali

Reputation: 1045

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.

Upvotes: 3

Related Questions