elasticsearch中文操作手册
http://cwiki.apachecn.org/pages/viewpage.action?pageId=4260724
新增:
curl -X PUT http://192.168.217.131:9200/black/test/2000/ -d'{"id":"2000","name":"test2000","age":"20","income":"21000","description":"综合实力一般"}'
修改:
curl -X POST http://192.168.217.131:9200/black/test/2000/ -d'{"id":"2000","name":"test2000","age":"20","income":"21000","description":"综合实力一般2000"}'
删除:
curl -X DELETE http://192.168.217.131:9200/black/test/2000/
查询所有数据:
curl -X GET http://192.168.217.131:9200/_search/
查询当前索引下全部数据:
curl -X GET http://192.168.217.131:9200/belle/_search/
查询当前索引下某个类型全部数据:
curl -X GET http://192.168.217.131:9200/belle/employee/_search/
通过id查询某条记录:
curl -X GET http://192.168.217.131:9200/belle/employee/1/