elasticsearch更新doc文档

在elasticsearch-head中:

http://localhost:9200/my_index/products/2/
_update
{
    "script" : {
        "inline": "ctx._source.name = 'xxx'"
    }
}

猜你喜欢

转载自www.cnblogs.com/chenmz1995/p/10534545.html