使用上述的按查询更新插件,您只需调用:
curl -XPOST localhost:9200/index/type/_update_by_query -d '{ "query": {"filtered": {"filter":{ "not": {"term": {"tag": "github"}} }}}, "script": "ctx._source.label = "github""}'按查询更新插件仅接受脚本,不接受部分文档。
至于性能和内存问题,我想最好的办法就是尝试一下。



