更新操作 post 路径 _update_by_query 更新字段 avatar 查询条件query
{
"script": {
"source": "ctx._source['avatar']='http://192.168.25.121/verify/face/gets?imageId=50ccc157ace047a4be7c05b32c4c2a87'"
},
"query": {
"bool": {
"must": [
{
"term": {
"subject_id": 4334
}
}
]
}
}
}
查询条件
{"from": 0,
"size": 800,
"query": {
"bool": {
"must": [{
"term": {
"screen_id": screen_id
}
}
],
"filter":{
"range": {
"timestamp": {
"gte": timestamp1,
"lte": timestamp2
}
}
}
}
}
}