Is it possible to partial update nested document when main document doesn't exist

We have index with nested documents. We would like to do partial update on the document. But we cannot control the order that the parts come in. So sometimes we will have the nested document come before the root document. And when we try to do upsert, we would get an "document_missing_exception". Is there any way we can create an empty root document with nested document on it with partial update?

I am not sure I understand. Can you please provide a simple recreation that can be run from Kibana dev tools console?

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