且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

用python进行elasticsearch部分更新

更新时间:2023-12-05 13:29:52

供以后参考,以下部分更新方法有效。

For future reference, the following method of partial update worked.

elasticsearch.update(index='gdata34', doc_type='gdat', id='328091-72341-7',
                     body={
                         'doc': {'x': {'y':'z'}}
                     }
                     )