es数据增删改查

新增es数据
curl -XPOST ‘http://10.121.8.5:9200/rpt_am_shandong_ys/rpt_am_shandong_ys/820-0600-201712?pretty’ -d ‘
{
“zbbm”: “10010103Y”,
“zzid”: “0600”,
“tjqj”: “201712”,
“gwxd” : 3124543444.71,
“nbys”:2073344433.12
}’

删除es数据
curl -XDELETE ‘http://10.121.8.5:9200/rpt_am_shandong_ys/rpt_am_shandong_ys/1561-0600-201712’

查询
curl -XGET ‘http://10.121.8.5:9200/rpt_am_shandong_ys/rpt_am_shandong_ys/1457-0600-201712’

修改es数据
curl -XPOST ‘http://10.193.23.147:9200/rpt_am_shandong_ys/rpt_am_shandong_ys/1646-0600-201712/_update’ -d ’
{
“doc”:{
“gwxd”:1237674.23,
“nbys”: 123233221212
}
}’

查看集群状态
curl -XGET http://10.121.8.4:9200/_cluster/health?pretty

查看所有索引信息
curl GET http://10.121.8.4:9200/_cluster/health?level=indices

输出到管道
curl GET http://10.121.8.4:9200/_cluster/health?level=indices > log.txt

查看所有索引占用情况
curl -XGET ‘http://10.121.8.4:9200/_cat/segments?v&h=si,sm’

你可能感兴趣的:(es数据增删改查)