title: Mapping logical queries to elasticsearch query DSL
body: <p>I am fairly new to Elasticsearch. I am trying to map basic logical queries to elasticsearch query DSL.</p>
  
  <p>I understand that bool is used to make boolean(logical) queries to ES. I can map queries like if (cond1 &amp;&amp; cond2), but I cannot understand how to make OR queries like if(cond1 || cond2)</p>
  
  <p>Logical Query</p>
  
  <pre><code>if(attr1==val1 &amp;&amp; attr2=val2){}
  </code></pre>
  
  <p>Elastic Search DSL</p>
  
  <pre><code>"bool" : {
      "must" : {
          ["term":{"attr1":"val1"}, {"term":"attr2":"val2"}]
      }
  }
  </code></pre>
  
  <p>What do I write for <code>if(attr1==val1 || attr2==val2)</code> ? </p>