一:查询对应索引的表结构
GET biz_commission_book
一:查询
1.1查询所有
cfg_send_sku是索引名,cfg_send_sku是索引类型,_search是固定后缀,是查询命令。本例子是查询所有
GET cfg_send_sku/cfg_send_sku/_search
{ "query":
{
"match_all": {}
}
}
1.2查询指定
GET cfg_send_sku/cfg_send_sku/_search
{
"query": {
"match": {
"skuName":"大白兔奶糖"
}
}
}
二:删除
2.1删除所有
_delete是删除命令
GET cfg_send_sku/cfg_send_sku/_delete_by_query { "query": { "match_all": {} } }
2.2删除指定条件
GET cfg_send_sku/cfg_send_sku/_delete_by_query { "query": { "match": { "skuName":"大白兔奶糖" } } }
一:增加字段
1 POST biz_commission_book/biz_commission_book
2 {
3 "properties" : {
4 "importStatus" : {
5 "type" : "integer"
6 },
7 "sealStatus" : {
8 "type" : "integer"
9 },
10 "tenantId" : {
11 "type" : "long"
12 },
13 "userId" : {
14 "type" : "long"
15 }
16 }
17 }
原文:https://www.cnblogs.com/yaochunhui/p/13546077.html