# Migration of elasticsearch java Client from 1.4.2 to 7.2 (problem in filteredQuery method)

**URL:** <https://discuss.elastic.co/t/migration-of-elasticsearch-java-client-from-1-4-2-to-7-2-problem-in-filteredquery-method/189688>\
**Category:** Elasticsearch\
**Created:** [July 10, 2019, 8:17am UTC](https://discuss.elastic.co/t/migration-of-elasticsearch-java-client-from-1-4-2-to-7-2-problem-in-filteredquery-method/189688 "2019-07-10T08:17:39Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 10, 2019, 10:54am UTC](https://discuss.elastic.co/t/migration-of-elasticsearch-java-client-from-1-4-2-to-7-2-problem-in-filteredquery-method/189688/4 "2019-07-10T10:54:46Z")

</div>

Could you provide a full recreation script as described in [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.

Then based on this Kibana script we can find what would be the Java code.

---

_[View the full topic](https://discuss.elastic.co/t/migration-of-elasticsearch-java-client-from-1-4-2-to-7-2-problem-in-filteredquery-method/189688)._
