gpt4 book ai didi

ruby-on-rails - Searchkick Elasticsearch引发400错误

转载 作者:行者123 更新时间:2023-12-02 22:43:33 27 4
gpt4 key购买 nike

我最近更新到High Seirra,不确定这是否意味着什么,现在当我尝试为Active Record模型重新编制索引时遇到此错误。

我尝试过的东西。我已经重新安装了RVM,Ruby,Elasticsearch。仍然出现相同的错误。

我团队中的其他人也进行了相同的升级,并且运行正常。
以下是我遇到的错误。

Elasticsearch::Transport::Transport::Errors::BadRequest: [400] {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Failed to parse mapping [_default_]: Could not convert [word_start.index] to boolean"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [_default_]: Could not convert [word_start.index] to boolean","caused_by":{"type":"illegal_argument_exception","reason":"Could not convert [word_start.index] to boolean","caused_by":{"type":"illegal_argument_exception","reason":"Failed to parse value [analyzed] as only [true] or [false] are allowed."}}},"status":400}
from /Users/rrobin244/.rvm/gems/ruby-2.3.3/gems/elasticsearch-transport-5.0.4/lib/elasticsearch/transport/transport/base.rb:202:in `__raise_transport_error'

最佳答案

检查您的Gemfile.lock并在此处检查elasticsearch的版本。如果它与本地系统中的elasticsearch版本不匹配,请删除gemfile.lock文件并运行 bundle 软件。这为我解决了这个问题。

关于ruby-on-rails - Searchkick Elasticsearch引发400错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47758473/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com