title: Java API for filter_path in elastic search
body: <p>I need to reduce the response size of elastic search query, So I found one way to use Response Filtering through filter_path parameter in URL.</p>
  
  <pre><code>GET testindex-2016.04.14/_search?filter_path=aggregations.testAggs.buckets 
  </code></pre>
  
  <p>Below is the link: 
  <a href="https://www.elastic.co/guide/en/elasticsearch/reference/2.3/common-options.html#_response_filtering" rel="nofollow noreferrer">https://www.elastic.co/guide/en/elasticsearch/reference/2.3/common-options.html#_response_filtering</a></p>
  
  <p>But I couldn't find any way to implement response filtering in Java API,
  While googling, I have also seen one <code>FilterPath.java</code> class in elastic search, but I couldn't find any example of it. Even I am not sure whether this class can be used for this purpose or not.</p>
  
  <p>Please suggest me any way to implement response filtering in Java. Thanks</p>