1.多条件查询
curl -X POST \ http://10.0.0.42:9200/addressbook_user/_search \ -H 'cache-control: no-cache' \ -H 'content-type: application/json' \ -d '{ "query": { "bool": { "must": [ { "term": { "orgId": { "value": "0db8574bb127466ab03be74ac74235da", "boost": 1 } } }, { "term": { "userId": { "value": "fa3058d8398a455304a3b8e439e29fdd", "boost": 1 } } } ], "adjust_pure_negative": true, "boost": 1 } }}'curl -X POST \ http://10.0.0.35:9200/addressbook_user/_search \ -H 'cache-control: no-cache' \ -H 'content-type: application/json' \ -d '{ "query": { "match": { "userId": "8ad37acb7860e3729c964699287de46e" } }}'
2.删除索引
curl -XDELETE http://10.0.0.7:9200/wxqyh180867134-2019.09.16