# Low-level Java client

**URL:** <https://forum.opensearch.org/t/low-level-java-client/18588>\
**Category:** OpenSearch\
**Tags:** discuss, configure\
**Created:** [March 27, 2024, 11:44am UTC](https://forum.opensearch.org/t/low-level-java-client/18588 "2024-03-27T11:44:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RGB314](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/rgb314/32/6901_2.png) [@RGB314](https://forum.opensearch.org/u/RGB314)\
**Post date:** [March 27, 2024, 11:44am UTC](https://forum.opensearch.org/t/low-level-java-client/18588/1 "2024-03-27T11:44:42Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser): 2.9

**Describe the issue** :  
[Java client - OpenSearch Documentation](https://opensearch.org/docs/latest/clients/java/) says…

> The OpenSearch Java client allows you to interact with your OpenSearch clusters through Java methods and data structures rather than HTTP methods and raw JSON.

So is there another (low-level) client which would allow me to interact with raw JSON requests and responses (and help in improving latency by avoiding serialisation and deserialisation)?

**Configuration** : N/A

**Relevant Logs or Screenshots** : N/A

---

<div class="post-metadata">

**Author:** ![reta](https://avatars.discourse-cdn.com/v4/letter/r/cdc98d/32.png) [@reta](https://forum.opensearch.org/u/reta)\
**Post date:** [March 27, 2024, 1:21pm UTC](https://forum.opensearch.org/t/low-level-java-client/18588/2 "2024-03-27T13:21:35Z")

</div>

You could use RestClient [1], however it is deprecated and is not recommended for use. You mught be rather interested in [2], thank you

[1] [OpenSearch/client/rest/src/main/java/org/opensearch/client/RestClient.java at main · opensearch-project/OpenSearch · GitHub](https://github.com/opensearch-project/OpenSearch/blob/main/client/rest/src/main/java/org/opensearch/client/RestClient.java)  
[2] [[FEATURE] Enable Generic HTTP Actions in Java Client · Issue #377 · opensearch-project/opensearch-java · GitHub](https://github.com/opensearch-project/opensearch-java/issues/377)

---

<div class="post-metadata">

**Author:** ![RGB314](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/rgb314/32/6901_2.png) [@RGB314](https://forum.opensearch.org/u/RGB314)\
**Post date:** [March 27, 2024, 2:48pm UTC](https://forum.opensearch.org/t/low-level-java-client/18588/3 "2024-03-27T14:48:23Z")

</div>

Thanks @reta

But as per [Java high-level REST client - OpenSearch Documentation](https://opensearch.org/docs/latest/clients/java-rest-high-level/), [OpenSearch/client/rest-high-level/src/main/java/org/opensearch/client/RestHighLevelClient.java at main · opensearch-project/OpenSearch · GitHub](https://github.com/opensearch-project/OpenSearch/blob/main/client/rest-high-level/src/main/java/org/opensearch/client/RestHighLevelClient.java) is deprecated, not [1].

Is [2] going to be integrated anytime soon?

---

<div class="post-metadata">

**Author:** ![reta](https://avatars.discourse-cdn.com/v4/letter/r/cdc98d/32.png) [@reta](https://forum.opensearch.org/u/reta)\
**Post date:** [March 27, 2024, 4:03pm UTC](https://forum.opensearch.org/t/low-level-java-client/18588/4 "2024-03-27T16:03:11Z")

</div>

> [@RGB314](#):
>
> Is [2] going to be integrated anytime soon?

We are working on that as we speak, thank you
