![](/img/trans.png)
[英]Elasticsearch::Transport::Transport::Errors::NotFound: [404]
[英]Elasticsearch::Transport::Transport::Errors::NotFound ([404] {“error”:{“root_cause”:[{“type”:“index_not_found_exception”
不确定在elasticsearch
本地环境中工作时遇到此奇怪错误,我将不胜感激。 谢谢
Elasticsearch :: Transport :: Transport :: Errors :: NotFound([404] {“错误”:{“ root_cause”:[{“类型”:“ index_not_found_exception”,“原因”:“无此索引”,“资源。类型“:” index_or_alias“,” resource.id“:”发票“,”索引“:”发票“}]],”类型“:” index_not_found_exception“,”原因“:”无此类索引“,” resource.type“ :“ index_or_alias”,“ resource.id”:“发票”,“ index”:“发票”},“状态”:404})
通过在rails console
运行以下命令来索引ES的固定问题:-
Model.__elasticsearch__.create_index!
Model.__elasticsearch__.create_index! force: true
Model.import force: true
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.