es日期类型字段条件判断及update
POST /index1/_update_by_query
{
"query": {
"bool": {
"must": [
{
"script": {
"script": {
"source": "doc['pubdate'].value.getMillis() > doc['time'].value.getMillis()"
}
}
}
]
}
},
"script":{
"source":"ctx._source['pubdate']=ctx._source['time']"
}
}