Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.5 索引 添加文档时,出现index_not_found_exception #31

Open
comtjz opened this issue Nov 16, 2016 · 0 comments
Open

1.5 索引 添加文档时,出现index_not_found_exception #31

comtjz opened this issue Nov 16, 2016 · 0 comments

Comments

@comtjz
Copy link

comtjz commented Nov 16, 2016

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,然后执行上面命令

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant