elastic search, is it possible to update nested objects without updating the entire document?

后端 未结 3 1770
陌清茗
陌清茗 2020-12-02 17:25

I\'m indexing a set of documents (imagine them as forum posts) with a nested object which is the user related to that post. My problem is that the user fields might be updat

3条回答
  •  眼角桃花
    2020-12-02 17:46

    Sadly elasticsearch cannot update only part of a document without reindexing the whole document. So, yes you would need to reindex the whole document to change a nested part.

    If you don't have the whole document to hand to resend it, you can just send the part that needs changing using the update API, but be warned there are performance issues.

提交回复
热议问题