elasticsearch-definitive-guide
elasticsearch-definitive-guide copied to clipboard
1.5 索引 添加文档时,出现index_not_found_exception
ES版本 2.4.1 使用命令:curl -XPUT http://localhost:9200/megacorp/employee/1 -d '{"first_name":"John", "last_name":"Smith", "age":25, "about":"I love to go rock climbing", "interests":["sports", "music"]}' 错误:{ "error" : { "root_cause" : [ { "type" : "index_not_found_exception", ...
解决的方法: 先建索引 curl -XPUT http://localhost:9200/megacorp,然后执行上面命令