# Java API: aggregation builder for normalize aggregation

**URL:** <https://discuss.elastic.co/t/java-api-aggregation-builder-for-normalize-aggregation/304224>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [May 9, 2022, 8:55am UTC](https://discuss.elastic.co/t/java-api-aggregation-builder-for-normalize-aggregation/304224 "2022-05-09T08:55:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![frankmontyne](https://avatars.discourse-cdn.com/v4/letter/f/c6cbf5/32.png) [@frankmontyne](https://discuss.elastic.co/u/frankmontyne)\
**Post date:** [May 9, 2022, 8:55am UTC](https://discuss.elastic.co/t/java-api-aggregation-builder-for-normalize-aggregation/304224/1 "2022-05-09T08:55:12Z")

</div>

I'm using the Elasticsearch 7.17.2 High Level REST client. I'm looking for a java builder for the normalize aggregation ([Normalize aggregation | Elasticsearch Guide [7.17] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/search-aggregations-pipeline-normalize-aggregation.html#normalize_pipeline-method))

I can't find a builder for it. Is there one available?

Thanks

---

<div class="post-metadata">

**Author:** ![RabBit\_BR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rabbit_br/32/82261_2.png) [@RabBit\_BR](https://discuss.elastic.co/u/RabBit_BR)\
**Post date:** [May 9, 2022, 2:27pm UTC](https://discuss.elastic.co/t/java-api-aggregation-builder-for-normalize-aggregation/304224/2 "2022-05-09T14:27:25Z")

</div>

Hi!

I didn't find it either. A possible solution is to write execute the json query in the SearchRequest.

In the Java API Client there is already the Normalize Aggregation constructor but you are still using HLRC

---

<div class="post-metadata">

**Author:** ![frankmontyne](https://avatars.discourse-cdn.com/v4/letter/f/c6cbf5/32.png) [@frankmontyne](https://discuss.elastic.co/u/frankmontyne)\
**Post date:** [May 9, 2022, 2:43pm UTC](https://discuss.elastic.co/t/java-api-aggregation-builder-for-normalize-aggregation/304224/3 "2022-05-09T14:43:51Z")

</div>

Thanks,  
Yes that is a solution but a bit of a hassle since it breaks our own API where we are passing aggregation builders and pipeline aggregation builders. Weird though that this is not present. I looked in the 8.2 version also and didn't find it there either. Can someone from Elastic elaborate on this? Should I file a report on Github?

---

<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:** [June 6, 2022, 2:44pm UTC](https://discuss.elastic.co/t/java-api-aggregation-builder-for-normalize-aggregation/304224/4 "2022-06-06T14:44:03Z")

</div>

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