title: Joining two indexes in Elastic Search like a table join
body: <p>I am relatively new to this elastic search. So, I have an index called <strong><em>post</em></strong> which contain documents like this:</p>
  
  <pre><code>{
  "id": 1,
  "link": "https:www.instagram.com/p/XXXXX/",
  "profile_id": 11,
  "like_count": 100,
  "comment_count": 12
  }
  </code></pre>
  
  <p>I have another index called <strong><em>profile</em></strong> which contain documents like this:</p>
  
  <pre><code>{
  "id": 11,
  "username": "superman",
  "name": "Superman",
  "followers": 12312
  }
  </code></pre>
  
  <p>So, as you guys can see, I have all profiles data under the index called <strong><em>profile</em></strong> and all posts data under the index called <strong><em>post</em></strong>. The <strong><em>"profile_id"</em></strong> present in the post document is linked with the <strong><em>"id"</em></strong> present in the profile document.</p>
  
  <p>Is there any way, when I am querying the post index and filtering out the post documents the profile data will also appear along with the post document based on the <strong><em>"profile_id"</em></strong> present in the post document? Or somehow fetch the both data doing a multi-index search?</p>
  
  <p>Thank you guys in advance, any help will be appreciated.</p>