title: filtered query using NativeSearchQueryBuilder in spring-data elasticsearch
body: <p>I am new to elasticsearch. I have a filtered query which gives me correct results using console:</p>
  
  <pre><code>GET _search
  {
    "query": {
      "filtered": {
        "query": {
               "bool" : {
              "should" : [
                {
                  "match" : { "name" : "necklace" }
                },
                {
                  "match" : { "skuCode" : "necklace" }
                }
              ]
          }
            },
        "filter": {
              "bool" : {
                "must" : [
                  {
                    "term" : { "enabled" : true }
                  },
                  {
                    "term" : { "type" : "SIMPLE" }
                  },
                  {
                    "term" : { "tenantCode" : "Triveni" }
                  }
                ]
              }
            }
      }
    }
  }
  </code></pre>
  
  <p>I am unable to get the corresponding spring-data version going. Here is what I tried:</p>
  
  <pre><code>SearchQuery searchQuery = new NativeSearchQueryBuilder().withQuery(boolQuery().should(matchQuery("skuCode", keyword)).should(matchQuery("name", keyword))).withFilter(
                  boolFilter().must(termFilter("enabled", true), termFilter("type", "SIMPLE"), termFilter("tenantCode", "Triveni"))).build();
  </code></pre>
  
  <p>This query gives me no results.</p>
  
  <p>Can somebody please help me with this?</p>