2016-06-27 1 views

답변

1

예, 가능합니다. doc parameter of the _update endpoint to partially update a document을 사용할 수 있습니다.

$ curl -XPUT host:9200/my-index/my-type/my-id -d '{ 
    "my_field" : "This is the original value", 
    "other_field" : "This field won't be touched by the update" 
}' 

$ curl -XPOST host:9200/my-index/my-type/my-id/_update -d '{ 
    "doc" : { 
    "my_field" : "changeme" 
    } 
}' 

참고 : 간단한 필드 수준 대체가 수행됩니다. 모든 유형의 연결 (문자열 또는 배열의 경우)이 발생하지 않도록하십시오. 이러한 유형의 동작에는 스크립트가 필요합니다 (또는 가져온 후 수정하는 2 단계 요청).