Unrelated Documents Update on specific document update

client - nodejs
version - “@opensearch-project/opensearch”: “^2.5.0”,

I have documents i want to update. Upon calling

this.opensearch.update({
{
      index: OpensearchConfig.getConfig('index'),
      id: id,
      body: {
        doc: {oid: `newoid`}
      },
      refresh: true
    }
})

This update works for the targeted id however other unrelated documents are updated as well causing errors.

Any reasons for this and how do I resolve this issue?
Your support is greatly appreciated. Thanks

Seems not possible, the code can update only one document because document id is unique, maybe there’s another thread which executes the code but specifying different document id.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.