Hello,
I've created a similar question before which didn't get any answers so I create a new topic but with more information / code that maybe helps to understand what i'm after.
I've made an example of what I want to achive. I want to delete documents from dummyindex-stuff-1 if there is a document in dummyindex-cars-1 with that value in the Name-property. Does this require that I use .NET or Python API?
PUT dummyindex-stuff-1/_bulk?refresh
{"index":{"_id":1}}
{"objectName":"Banana","weight":1}
{"index":{"_id":2}}
{"objectName":"Volvo","weight":1000}
{"index":{"_id":3}}
{"objectName":"Tesla","weight":1000}
{"index":{"_id":4}}
{"objectName":"Ford","weight":1000}
{"index":{"_id":5}}
{"objectName":"Lemon","weight":1}
{"index":{"_id":6}}
{"objectName":"Orange","weight":1}
PUT dummyindex-cars-1/_bulk?refresh
{"index":{"_id":1}}
{"Name":"Banana"}
{"index":{"_id":2}}
{"Name":"Volvo"}
{"index":{"_id":3}}
{"Name":"Tesla"}
// Johan