【问题标题】:Laravel Scout - flush command not workingLaravel Scout - 刷新命令不起作用
【发布时间】:2021-09-06 08:47:12
【问题描述】:

我正在使用带有 Meil​​isearch 的 Scout。 我想刷新我的一个模型。

php artisan scout:flush "App\Comment"

返回

All [App\Comment] records have been flushed.

但是,查看meilisearch的时候,这个表的记录还在。

我认为这是因为我手动删除了数据库中表的所有记录。

【问题讨论】:

    标签: laravel laravel-scout meilisearch


    【解决方案1】:

    试试这个Comment::removeAllFromSearch(); 然后用php artisan scout:flush "App\Comment"再次缓存你的数据

    【讨论】:

    • 抱歉,要保存的是 php artisan scout:import "App\Comment"
    猜你喜欢
    • 1970-01-01
    • 2023-03-10
    • 2020-02-13
    • 1970-01-01
    • 1970-01-01
    • 2013-09-25
    • 2015-09-24
    • 2017-07-18
    • 2021-08-24
    相关资源
    最近更新 更多