Fixes https://github.com/payloadcms/payload/issues/13106 The search plugin could accidentally create duplicate entries when a document is created and within that same lifecycle a payload.update is called. The nested docs plugin does this which causes 2 entries for the same document to be inserted.