# Java - build query due to the many fields

**URL:** <https://discuss.elastic.co/t/java-build-query-due-to-the-many-fields/116493>\
**Category:** Elasticsearch\
**Created:** [January 22, 2018, 2:19pm UTC](https://discuss.elastic.co/t/java-build-query-due-to-the-many-fields/116493 "2018-01-22T14:19:19Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [January 23, 2018, 8:48am UTC](https://discuss.elastic.co/t/java-build-query-due-to-the-many-fields/116493/8 "2018-01-23T08:48:09Z")

</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 want to do exactly. Please, try to keep the example as simple as possible (like one or two fields should be enough).

---

_[View the full topic](https://discuss.elastic.co/t/java-build-query-due-to-the-many-fields/116493)._
