How do I combine 2 index data in elasticsearch?

How to merge two indexes based on common field in Elasticsearch?

screen shot of the solution here