在rails的弹性搜索中创建索引时出现问题

时间:2018-11-23 11:43:02

标签: ruby-on-rails elasticsearch

当我尝试使用命令为新表创建索引时-

model_name__elasticsearch__create_index!

这让我犯了这个错误-

Elasticsearch::Transport::Transport::Errors::BadRequest: [400] {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"unknown setting [index.read_only_allow_delete] did you mean [index.blocks.read_only_allow_delete]?"}],"type":"illegal_argument_exception","reason":"unknown setting [index.read_only_allow_delete] did you mean [index.blocks.read_only_allow_delete]?"},"status":400}

我不明白我在做什么错,我是Elasticsearch的新手,任何帮助将不胜感激。预先感谢。

0 个答案:

没有答案