# 修改文档 #####修改整个文档,相当于覆盖 PUT或者POST请求 ``` PUT /order_index/order_type/1 { "orderId":10001, "userId":10001, "orderNo":"a10001", "userName":"John", "totalPrice":50.00, "address":"银河系天蝎座XX号星球", "createTime":"2018-05-16 14:08:00" } ``` ![](https://box.kancloud.cn/8b96ec1bdbccb2ea68715313c83ed142_634x284.png) 修改后可以看到_version变化 #####修改文档的部分数据 需要POST请求,带_update动词 ``` http://172.16.16.179:9200/order_index/order_type/1/_update { "doc": { "address": "银河系天蝎座XX号星球的,距离约三万光年" } } ``` ![](https://box.kancloud.cn/1ba6bcfffedc274fd49445582e9e8b99_629x291.png)