# 'Missing' on field aggreagation is not available in Java Client

**URL:** <https://discuss.elastic.co/t/missing-on-field-aggreagation-is-not-available-in-java-client/317679>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [October 28, 2022, 11:59am UTC](https://discuss.elastic.co/t/missing-on-field-aggreagation-is-not-available-in-java-client/317679 "2022-10-28T11:59:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![molsza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/molsza/32/112649_2.png) [@molsza](https://discuss.elastic.co/u/molsza)\
**Post date:** [October 28, 2022, 11:59am UTC](https://discuss.elastic.co/t/missing-on-field-aggreagation-is-not-available-in-java-client/317679/1 "2022-10-28T11:59:34Z")

</div>

I am trying to do an aggregation on multi-terms fields and include the cases where there is no value for for fields. The [`missing`](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-multi-terms-aggregation.html#_missing_value_3) property should handle that, but it looks like it cannot be set in Java Client `co.elastic.clients.elasticsearch._types.aggregations.MultiTermLookup`. Or is it somewhere else?

---

<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:** [October 28, 2022, 12:20pm UTC](https://discuss.elastic.co/t/missing-on-field-aggreagation-is-not-available-in-java-client/317679/2 "2022-10-28T12:20:16Z")

</div>

It happened to me but in another clause that did not have the parameter x. I opened an issue in git and waited for the Elastic team to add it. I believe you have to do the same.

---

<div class="post-metadata">

**Author:** ![molsza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/molsza/32/112649_2.png) [@molsza](https://discuss.elastic.co/u/molsza)\
**Post date:** [November 9, 2022, 9:59am UTC](https://discuss.elastic.co/t/missing-on-field-aggreagation-is-not-available-in-java-client/317679/3 "2022-11-09T09:59:20Z")

</div>

I've hoped that I am missing something and won't need to wait for new version.  
Issue created: [No missing parameter in Java Client API in MultiTermLookup builder · Issue #91448 · elastic/elasticsearch · GitHub](https://github.com/elastic/elasticsearch/issues/91448)

---

<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 7, 2022, 9:59am UTC](https://discuss.elastic.co/t/missing-on-field-aggreagation-is-not-available-in-java-client/317679/4 "2022-12-07T09:59:35Z")

</div>

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