# Java client: Aggregate class does not contain geohex\_grid kind

**URL:** <https://discuss.elastic.co/t/java-client-aggregate-class-does-not-contain-geohex-grid-kind/317172>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [October 21, 2022, 8:17am UTC](https://discuss.elastic.co/t/java-client-aggregate-class-does-not-contain-geohex-grid-kind/317172 "2022-10-21T08:17:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alain\_Bod](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alain_bod/32/77345_2.png) [@Alain\_Bod](https://discuss.elastic.co/u/Alain_Bod)\
**Post date:** [October 21, 2022, 8:17am UTC](https://discuss.elastic.co/t/java-client-aggregate-class-does-not-contain-geohex-grid-kind/317172/1 "2022-10-21T08:17:39Z")

</div>

Hi,  
We are trying to make geohex aggregations with the new java client. The request is possible, however the response misses a method in order to use it. I've opened an [issue](https://github.com/elastic/elasticsearch-java/issues/397), but nothing has been done about it.  
Any idea for a workaround?

Best regards,

---

<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:** [November 18, 2022, 8:17am UTC](https://discuss.elastic.co/t/java-client-aggregate-class-does-not-contain-geohex-grid-kind/317172/2 "2022-11-18T08:17:54Z")

</div>

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