Elasticsearch illegal_argument_exception错误

时间:2018-03-22 06:27:20

标签: elasticsearch ruby-on-rails-5 searchkick

我正在使用Elasticsearch 2.4开发Rails 5.0.6项目。我正在使用searchkick。我的问题是,当我尝试重新索引时,我收到以下错误。 (我知道错误中的一些值可能与我的案例有关)

{"type"=>"illegal_argument_exception", "reason"=>"Mapper for [body] conflicts with existing mapping in other types:\n[mapper [body] has different [index] values, mapper [body] has different [analyzer], mapper [body] is used by multiple types. Set update_all_types to true to update [search_analyzer] across all types., mapper [body] is used by multiple types. Set update_all_types to true to update [search_quote_analyzer] across all types.]"}

此错误意味着什么,以及可能导致此问题的原因是什么?然后我可以检查代码并修复它。

我在网上发现了一些文章,但仍然没有完全理解导致错误的原因。

PS:我也在discuss.elastic.co发布了相同的问题。

0 个答案:

没有答案
相关问题