title: Obtaining string query (JSON) from SearchQuery object
body: <p>For debugging purposes, I need to know what query spring-data-elasticsearch is sending to the ElasticSearch cluster. I have tried to call the <code>toString</code> method on the <code>SearchQuery</code> object, and doesn't return what I need.</p>
  
  <p>What I am doing in Java (using spring-data-elasticsearch) is:</p>
  
  <pre><code>private FilterBuilder getFilterBuilder(String id) {
      return orFilter(
          termFilter("yaddayaddayadda.id", id),
          termFilter("blahblahblah.id", id)
      );
  }
  
  
  SearchQuery sq = NativeSearchQueryBuilder()
      .withQuery(new MatchAllQuery())
      .withFilter(fb)
      .build();
  </code></pre>
  
  <p>And I expect to return something like this plain query executed in ES cluster REST API is returning:</p>
  
  <pre><code>{
      "query": {
          "filtered": {
              "filter": {
                  "or": [
                      {
                          "term": {
                              "yaddayaddayadda.id": "9"
                          }
                      },
                      {
                          "term": {
                              "blahblahblah.id": "9"
                          }
                      }
                  ]
              }
          }
      }
  }
  </code></pre>
  
  <p>Thanks in advance!</p>