简体   繁体   English

Algolia 不导入我的记录 laravel 侦察员

[英]Algolia not importing my records laravel scout

I am using laravel scout to implement my text search.我正在使用 laravel scout 来实现我的文本搜索。 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.当我这样做时,我收到此成功消息Imported [App\Thread] models up to ID: 8但在 algolia 中我看不到给定索引的记录,它一直说我有 0 条记录。 I am currently using my admin APIkey.我目前正在使用我的管理员 APIkey。

How do I fix that?我该如何解决?

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.我可以毫无问题地执行php artisan scout:import But when i switched the driver, it didn't work again, and i had to do the 4 steps above again to fix it.但是当我切换驱动程序时,它再次不起作用,我不得不再次执行上述4个步骤才能修复它。

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.我正在使用sqs作为队列驱动程序,我必须运行队列工作器来执行导入到 algolia 的功能。

i had this problem with in my local, so i runned meilisearch without master key, and it fixed我在本地遇到了这个问题,所以我在没有主密钥的情况下运行了 meilisearch,它修复了

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM