# Query from json to java api

**URL:** <https://discuss.elastic.co/t/query-from-json-to-java-api/91517>\
**Category:** Elasticsearch\
**Created:** [July 1, 2017, 1:28pm UTC](https://discuss.elastic.co/t/query-from-json-to-java-api/91517 "2017-07-01T13:28:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 1, 2017, 5:35pm UTC](https://discuss.elastic.co/t/query-from-json-to-java-api/91517/2 "2017-07-01T17:35:36Z")

</div>

Please format your code using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

May be share the full logs?

BTW why not using other QueryBuilders? Like the multimatch one?

Also I think that if you use wrap, you should put in it only what is inside the "query" part of your json

---

_[View the full topic](https://discuss.elastic.co/t/query-from-json-to-java-api/91517)._
