概述 概述 就是updsert操作必须指定id如果指定的id不存在,创新新文档。如果指定的id已存在,先删除现有的文档,再创建新文档,版本会增加。PUT my_index/_doc/123{"user": "zhangsan", "age": 4}