我最近更新到High Seirra,不确定这是否意味着什么,现在当我试图重新索引活动记录模型时,我得到了这个错误。
我试过的东西。我已经重新安装了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'发布于 2020-03-02 17:08:18
检查您的Gemfile.lock并检查elasticsearch的版本。如果它与本地系统中的elasticsearch版本不匹配,请删除gemfile.lock文件并运行包。这为我解决了这个问题。
发布于 2018-01-18 01:07:15
我也遇到了同样的问题,我不得不在我的Mac上升级elasticsearch
brew upgrade elasticsearchhttps://stackoverflow.com/questions/47758473
复制相似问题