Setting parent child relation

I'm using indexRequestBuilder and I want to use setParent(). I have to migrate a code which was written on ES 5.4.0. where setParent() was present. but now I'm using 7.2.0 Where the parent field has been replaced with join datatype. I've read the docs but am unable to understand how to achieve this.
Should I use setSource() and provide a map with properties? can anyone provide me an example for this in java?

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