- elastic search 的index不能有大写的字母,必须都是小写字母
- ES7.x之前想要通过id查找具体的doc的url格式为:
http://localhost:9200/myindex/mytype/id
ES7.x之后通过id精确查找的url格式为:
http://localhost:9200/myindex/_doc/id
去掉了es里的type,而改为固定的_doc,因为之后es不再支持type了
http://localhost:9200/myindex/mytype/id
ES7.x之后通过id精确查找的url格式为:
http://localhost:9200/myindex/_doc/id
去掉了es里的type,而改为固定的_doc,因为之后es不再支持type了