e.g. timeline에 데이터 post
- body
{
"contentId": "1283",
"ymd": "2020-11-15",
"usestate": "",
"regdate": "2020-11-16 11:00:13"
}
: insert와 같은 방법으로 post method를 이용해 update 하고자 하는 id의 데이터를 update
-> 이때 기존의 데이터도 같이 입력해 주어야 함
문제점
-> update하고자 하는 데이터의 id를 기억해야함
-> update 시 기존 reg값은 유지하고(기존 값 그대로 post) upddate를 현재시각으로 update해줘야함
-body
(참고: https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html)
문제점
-> update할 데이터가 지나치게 많으면 멈출 수 있음
- script 이용, kibana에서 sql 사용 등