使用“模式:: async;返回参数错误
查看并行的重新索引以提高性能,但是当我运行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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
搜索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.