# Composite Aggregation Java API?

**URL:** https://discuss.elastic.co/t/composite-aggregation-java-api/126642
**Category:** Elasticsearch
**Created:** [April 3, 2018, 10:14pm UTC](https://discuss.elastic.co/t/composite-aggregation-java-api/126642 "2018-04-03T22:14:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jimyoo](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jimyoo](https://discuss.elastic.co/u/jimyoo)
#### Post date: [April 3, 2018, 10:14pm UTC](https://discuss.elastic.co/t/composite-aggregation-java-api/126642/1 "2018-04-03T22:14:22Z")

</div>

I like "Composite Aggregation" - good addition and thanks. 👍  
Is there Java API for this? If not, any plan for Transport, Rest Client ... ?

For queries, we are using Transport API (with Elasticsearch 5.6) now and planning to migrate to Rest Client (with Elasticsearch 6.x).

---

<div class="post-metadata">

### Author: ![jskidmore](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jskidmore/32/29649_2.png) [@jskidmore](https://discuss.elastic.co/u/jskidmore)
#### Post date: [April 5, 2018, 4:51pm UTC](https://discuss.elastic.co/t/composite-aggregation-java-api/126642/2 "2018-04-05T16:51:05Z")

</div>

I am also very interested in this specifically as I have some complex queries that seem to require this, and I can achieve what I need in the REST api by using composite, but need to leverage through java.

---

<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: [May 3, 2018, 4:51pm UTC](https://discuss.elastic.co/t/composite-aggregation-java-api/126642/3 "2018-05-03T16:51:34Z")

</div>

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