# Dropping key\_as\_string from responses

**URL:** <https://discuss.elastic.co/t/dropping-key-as-string-from-responses/47129>\
**Category:** Elasticsearch\
**Created:** [April 12, 2016, 2:43pm UTC](https://discuss.elastic.co/t/dropping-key-as-string-from-responses/47129 "2016-04-12T14:43:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arni\_Sumarlidason](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arni_sumarlidason/32/2229_2.png) [@Arni\_Sumarlidason](https://discuss.elastic.co/u/Arni_Sumarlidason)\
**Post date:** [April 12, 2016, 2:43pm UTC](https://discuss.elastic.co/t/dropping-key-as-string-from-responses/47129/1 "2016-04-12T14:43:53Z")

</div>

I've been reading this thread, [https://groups.google.com/forum/#!msg/elasticsearch/3e\_4Y\_1Ven4/F4Jf9T\_1pUIJ](https://groups.google.com/forum/#!msg/elasticsearch/3e_4Y_1Ven4/F4Jf9T_1pUIJ) trying to figure out how to remove key\_as\_string from my ES responses.

It seems this was fixed with this commit, [https://github.com/elastic/elasticsearch/commit/2eb935544fe2dc9d327b4efa00ef97242d89d1db](https://github.com/elastic/elasticsearch/commit/2eb935544fe2dc9d327b4efa00ef97242d89d1db), but I cannot figure out how to utilize it. When i pass the format parameter ES tries to format the date; how do i ask it to do nothing?

my data is stored as "strict\_date\_optional\_time||epoch\_millis" and my query like so,

```
"aggs": {
    "day": {
        "date_histogram": {
        "field": "my_date",
        "interval": "day"
        }
   }
}

```

thank you for reading,

---

<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 5, 2017, 11:00pm UTC](https://discuss.elastic.co/t/dropping-key-as-string-from-responses/47129/2 "2017-07-05T23:00:07Z")

</div>


