Searchkick reindex失败

时间:2016-02-15 12:35:41

标签: ruby elasticsearch searchkick

我尝试运行rake searchkick:reindex CLASS=Doctor但是我收到了这个错误:

rake aborted!
Elasticsearch::Transport::Transport::Errors::BadRequest: [400] {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"analyzer [searchkick_word_index] not found for field [word]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [_default_]: analyzer [searchkick_word_index] not found for field [word]","caused_by":{"type":"mapper_parsing_exception","reason":"analyzer [searchkick_word_index] not found for field [word]"}},"status":400}
/usr/local/bundle/gems/elasticsearch-transport-1.0.15/lib/elasticsearch/transport/transport/base.rb:146:in `__raise_transport_error'
/usr/local/bundle/gems/elasticsearch-transport-1.0.15/lib/elasticsearch/transport/transport/base.rb:256:in `perform_request'
/usr/local/bundle/gems/elasticsearch-transport-1.0.15/lib/elasticsearch/transport/transport/http/faraday.rb:20:in `perform_request'
/usr/local/bundle/gems/elasticsearch-transport-1.0.15/lib/elasticsearch/transport/client.rb:125:in `perform_request'

我的弹性搜索版本是2.2.0,我使用的是ruby 2.2.0。 我的另一个分支工作正常,我无法找到为什么会在我的旧分支中发生这种情况。

这是模型: Doctor.rb

造成这种情况的可能性有哪些?

谢谢!

0 个答案:

没有答案