title: Multiple bool clauses in elasticsearch filter/query
body: <p>How should I translate this SQL query into an elasticsearch query?</p>
  
  <pre><code>SELECT * FROM myTable WHERE (id = 99 AND isonline &lt;&gt; 1) OR (id = 98 AND isonline &lt;&gt; 0)
  </code></pre>
  
  <p>How do I make a query that has multiple bool filters? (bonus would be to also show how to do it in NEST)</p>
  
  <p>The elastic query I've come up with doesn't work because it contains duplicate object keys.</p>
  
  <pre><code>{
      "size": 1000,
      "query": {
          "match_all": {}
      },
      "filter": {
          "bool": {
              "must": [
                  {
                      "term": {
                          "id": 99
                      }
                  }
              ],
              "must_not": [
                  {
                      "term": {
                          "isonline": true
                      }
                  }
              ]
          },
          "bool": {
              "must": [
                  {
                      "term": {
                          "id": 98
                      }
                  }
              ],
              "must_not": [
                  {
                      "term": {
                          "isonline": false
                      }
                  }
              ]
          }        
      }
  }
  </code></pre>
  
  <p><em>elasticsearch version 1.7</em></p>