查询
GET news/_search
{
"track_total_hits": true,
"size":300,
"from" : 0,
"query" : {
"bool" : {
"must" : [
{"match_phrase" :
{
"id" :1308044628750348294
}
}
]
}
}
}
删除
POST news/_delete_by_query
{
"query" : {
"bool" : {
"must" : [
{"match_phrase" :
{
"id" :1310464974484774913/1308044628750348294
}
}
]
}
}
}
更新
POST news/_update_by_query
{
"script": {
"source": "ctx._source['created_at']=1600697116"
},
"query" : {
"bool" : {
"must" : [
{"match_phrase" :
{
"id" :1308044628750348294
}
}
]
}
}
}