POST indexname/typename/_update_by_query
{
"script":{
"lang":"painless",
"source":"if (ctx._source.colname == null) {ctx._source.colname = 0.00}"
}
}
POST indexname/typename/_update_by_query
{
"script":{
"lang":"painless",
"source": "for (int i = 0; i < ctx._source['goodsInfos'].length; ++i) { if(ctx._source['goodsInfos'][i].colname == null){ctx._source['goodsInfos'][i].colname = 0.0} }"
}
}
es kibana painless 修改字段值
最新推荐文章于 2024-02-22 16:04:46 发布