How do I combine 2 index join data in elasticsearch?

that's exactly what I want.


My purpose was this.
In elasticsearch, solve this with a code structure that does this

Elasticsearch does not support joins do you need to create the structure you are looking for before indexing the data into Elasticsearch.