title: Elastic search terms query for an AND condition for 2 properties dependent on each other
body: <p>So I have a query to get records and the filter condition is something like this </p>
  
  <pre><code> GET  tenantforsneha55/permits/_search/ 
      {
        "from":0,
        "size":10,
        "sort":[
          {
            "permitNumber.keyword":{
              "order":"asc"
            }
          }
        ],
        "query":{
          "bool":{
            "must":[
              {
                "terms":{
                  "workClassId":[
                    "1",
                    "2"
                  ]
                }
              },
              {
                "terms":{
                  "typeId":[
                    "1",
                    "2"
                  ]
                }
              }
            ]
          }
        }
      }
  </code></pre>
  
  <p>This shows results for a filter like this 
  Get records where typeId in ["1","2"] and classId in ["1","2"]</p>
  
  <p>But I want the filter condition to be like this
  typeId = 1 and classId = 1 OR typeId = 2 and classId = 2.</p>
  
  <p>Is there any way to have this ? I am using NEST,, this query is generated from that,will be great if you can give me the code in C#, Elastic v 5.5</p>