title: Searching multiple types in elasticsearch
body: <p>I have a usecase where there are two different types in the same index. Both the types have different structure and mapping. </p>
  
  <p>I need to query both types at the same time using different query DSL.</p>
  
  <p>How can I build my query DSL to simultaneously query more than one type of the same index.</p>
  
  <p>I looked into elasticsearch guide at <a href="https://www.elastic.co/guide/en/elasticsearch/guide/current/multi-index-multi-type.html" rel="noreferrer">https://www.elastic.co/guide/en/elasticsearch/guide/current/multi-index-multi-type.html</a> but there is no proper explanation here. According to this even if I set two different types in my request :</p>
  
  <pre><code>/index/type1,type2/_search
  </code></pre>
  
  <p>I will have to send the same query DSL.</p>