How to use bulk api for partial updates of documents that may not exist?

I am trying to use the _bulk endpoint with update requests but I have a few different data pipelines that are going to be putting together the pieces of my documents. I have realized that the reason my updates aren't working is because I have no documents yet and, unlike the updateRequest in a bulkRequest for the high level REST client, when you use the update request for a plain _bulk endpoint the document needs to already be created.

Is this a setting that I can change or something I can add to my request? I have 3 different pipelines so I would really rather use partial updates that just get created when the document does not exist. Let me know if more context is needed, thanks!

Found out I need to use the "doc_as_upsert" : true as part of my docs :slight_smile:

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