# Possible values for typed\_keys aggregations

**URL:** <https://discuss.elastic.co/t/possible-values-for-typed-keys-aggregations/90178>\
**Category:** Elasticsearch\
**Created:** [June 21, 2017, 12:58am UTC](https://discuss.elastic.co/t/possible-values-for-typed-keys-aggregations/90178 "2017-06-21T00:58:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KodrAus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kodraus/32/22798_2.png) [@KodrAus](https://discuss.elastic.co/u/KodrAus)\
**Post date:** [June 21, 2017, 12:58am UTC](https://discuss.elastic.co/t/possible-values-for-typed-keys-aggregations/90178/1 "2017-06-21T00:58:10Z")

</div>

Hi all!

This is more of a development question than a usage one.

For the Rust client I work on I want to revamp the current simple response aggregations parser and am looking at leveraging `typed_keys` if available to know the basic shape of the aggregation before deserialising it. Otherwise it'll end up in as an anonymous json map.

Is there a function in Elasticsearch that determines what that type value is per aggregation that appears before the `#`, or are they hard-coded somewhere in source I can go track down?

Unfortunately I can't rely on the aggregations specified in the request being available as a reference because those aren't necessarily strongly-typed.

Thanks!

---

<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:** [July 19, 2017, 12:58am UTC](https://discuss.elastic.co/t/possible-values-for-typed-keys-aggregations/90178/2 "2017-07-19T00:58:37Z")

</div>

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