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']"
}
}
博客主要围绕Elasticsearch(ES)展开,重点介绍了ES中日期类型字段的条件判断以及update操作,涉及信息技术领域中数据库操作相关内容。
1042

被折叠的 条评论
为什么被折叠?



