使用“模式:: async;返回参数错误

发布于 2025-01-30 11:16:50 字数 408 浏览 2 评论 0原文

查看并行的重新索引以提高性能,但是当我运行mymodel.reindex(mode :: async)在控制台中(如文档中所建议)( https://github.com/ankane/ankane/searchkick#parallelle-reindexing ),我得到: 参数:未知关键字::模式

Ruby (3.1.2)
Gem versions:
Searchkick (4.6.3)
Elasticsearch (7.13.3)
Rails (6.1.6)

Looking into parallel reindexing to improve performance, but when I run MyModel.reindex(mode: :async) in a console, as suggested in the docs (https://github.com/ankane/searchkick#parallel-reindexing), I get:
ArgumentError: unknown keyword: :mode

Ruby (3.1.2)
Gem versions:
Searchkick (4.6.3)
Elasticsearch (7.13.3)
Rails (6.1.6)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

揪着可爱 2025-02-06 11:16:50

搜索Kick v4.6.3 没有支持模式: :async选项。

您可能需要将搜索版本升级到至少 v5.0.1 ,要使用此选项。

有关完整更改日志,请参阅在这里

Searchkick v4.6.3 doesn't has the support for mode: :async option.

You might need to upgrade the searchkick version to at least v5.0.1, to use this option.

For full change log, please refer here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文