# How to disable typed\_keys using java dsl?

**URL:** <https://discuss.elastic.co/t/how-to-disable-typed-keys-using-java-dsl/155471>\
**Category:** Elasticsearch\
**Created:** [November 6, 2018, 12:05am UTC](https://discuss.elastic.co/t/how-to-disable-typed-keys-using-java-dsl/155471 "2018-11-06T00:05:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Larry\_Meadors](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larry_meadors/32/37178_2.png) [@Larry\_Meadors](https://discuss.elastic.co/u/Larry_Meadors)\
**Post date:** [November 6, 2018, 12:05am UTC](https://discuss.elastic.co/t/how-to-disable-typed-keys-using-java-dsl/155471/1 "2018-11-06T00:05:37Z")

</div>

I'm using the Java DSL to create and execute a query - when using the default request options, the `typed_keys` header appears to be set, and I can't find a way to get rid of it - it's not in the headers, but the behavior I'm seeing is as if it was.

My aggregations come back named like `"sterms#kindName"` when I am expecting just `"kindName"`.

What am I missing?

---

<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 4, 2018, 12:05am UTC](https://discuss.elastic.co/t/how-to-disable-typed-keys-using-java-dsl/155471/2 "2018-12-04T00:05:37Z")

</div>

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