# Does Elasticsearch high-level client offer a method similar to wrapperQuery?

**URL:** <https://discuss.elastic.co/t/does-elasticsearch-high-level-client-offer-a-method-similar-to-wrapperquery/206364>\
**Category:** Elasticsearch\
**Created:** [November 4, 2019, 10:17am UTC](https://discuss.elastic.co/t/does-elasticsearch-high-level-client-offer-a-method-similar-to-wrapperquery/206364 "2019-11-04T10:17:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pato\_Python](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pato_python/32/54579_2.png) [@Pato\_Python](https://discuss.elastic.co/u/Pato_Python)\
**Post date:** [November 4, 2019, 10:17am UTC](https://discuss.elastic.co/t/does-elasticsearch-high-level-client-offer-a-method-similar-to-wrapperquery/206364/1 "2019-11-04T10:17:43Z")

</div>

Does Elasticsearch high-level client offer a method similar to [wrapperQuery​(java.lang.String source)](https://static.javadoc.io/org.elasticsearch/elasticsearch/6.5.4/org/elasticsearch/index/query/QueryBuilders.html#wrapperQuery(java.lang.String))  
that can be used to build `highlight` property of a search request?

**Context:**  
We're bulding an API layer that will accept search requests as JSON, build `SearchRequest` from it using high-level client, execute search and forward a response to the client. I know we could potentially use low-level client, but we would like to benefit from features offered by high-level client.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 2, 2019, 10:17am UTC](https://discuss.elastic.co/t/does-elasticsearch-high-level-client-offer-a-method-similar-to-wrapperquery/206364/2 "2019-12-02T10:17:43Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
