一丶查看elasticsearch的相关信息
1.GET|http://xx.xx.xx.xx:9200/_cat/nodes;查看所有节点
2.GET|http://xx.xx.xx.xx:9200/_cat/health;查看es健康情况
3.GET|http://xx.xx.xx.xx:9200/_cat/master;查看es主节点
4.GET|http://xx.xx.xx.xx:9200/_cat/indices;查看所有索引

二丶保存更新数据
1.put需要带id保存数据;post不需要,可以自己生成id。更新带_update,比原来数据,如果一样就不进行操作,version,seq_no都不变,这样必须加doc。 不带_update,不会检查原数据,一直更新,seq_no要变.

三丶删除操作
DELETE|http://xx.xx.xx.xx:9200/index/types/id 删除某个id
DELETE|http://xx.xx.xx.xx:9200/index 删除该索引下所有数据

四丶批量操作
在kibana中,使用/_bulk
例:POST /customer/external/_bulk
{"index":{"_id":"1"}}
{"name":"John Doe"}
{"index":{"_id":"2"}}
{"name":"John Doe"}

POST /_bulk
{"delete":{"_index":"website","_type":"blog","_id":"123"}}
{"create":{"_index":"website","_type":"blog","_id":"123"}}
{"title":"my first blog post"}
{"index":{"_index":"website","_type":"blog"}}
{"title":"my second blog post"}
{"update":{"_index":"website","_type":"blog","_id":"123"}}
{"doc":{"title":"my updated blog post"}}