es
1.删除索引数据
POST /索引名称/_delete_by_query
{
"query": {
"bool": {
"must_not": [
{
"match": {
"test": "字段值"
}
}
]
}
}
}
从一个索引数据导入另一个索引里
POST _reindex
{
"source": {
"index": "test_20201207",
"size":5000
},
"dest": {
"index": "test_20201208"
}
}
8.修改索引的字段值
POST /索引名称/_update_by_query
{
"query": {
"bool": {
"must": [
{
"match": {
"status": "1"
}
}
]
}
},
"script": {
"inline": "ctx._source['major'] = 'net';ctx._source['com_name'] = 'lisi'"
}
}
————————————————
版权声明:本文为CSDN博主「aliyeah」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/aliyeah/article/details/124345182