# Key names in bucket listing are truncated

**URL:** <https://discuss.elastic.co/t/key-names-in-bucket-listing-are-truncated/63368>\
**Category:** Elasticsearch\
**Created:** [October 19, 2016, 9:55am UTC](https://discuss.elastic.co/t/key-names-in-bucket-listing-are-truncated/63368 "2016-10-19T09:55:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![frederes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frederes/32/12476_2.png) [@frederes](https://discuss.elastic.co/u/frederes)\
**Post date:** [October 19, 2016, 9:55am UTC](https://discuss.elastic.co/t/key-names-in-bucket-listing-are-truncated/63368/1 "2016-10-19T09:55:07Z")

</div>

I have a problem with my aggregation : key names in bucket listing are truncated

Example :  
my key value is MF-18500 and in my response, the bucket key is "MF" so all my sums are wrong (because i have multiple key values of kind MF- and they are grouped by "MF")

I don't know why... any help on the topic welcome 😉

> <https://github.com/elastic/elasticsearch/issues/21014>

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 19, 2016, 10:09am UTC](https://discuss.elastic.co/t/key-names-in-bucket-listing-are-truncated/63368/2 "2016-10-19T10:09:03Z")

</div>

Do not analyze text when you run aggs.

---

<div class="post-metadata">

**Author:** ![frederes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frederes/32/12476_2.png) [@frederes](https://discuss.elastic.co/u/frederes)\
**Post date:** [October 19, 2016, 10:11am UTC](https://discuss.elastic.co/t/key-names-in-bucket-listing-are-truncated/63368/3 "2016-10-19T10:11:56Z")

</div>

Sorry i don't understand, how to do this ?

---

<div class="post-metadata">

**Author:** ![frederes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frederes/32/12476_2.png) [@frederes](https://discuss.elastic.co/u/frederes)\
**Post date:** [October 19, 2016, 10:24am UTC](https://discuss.elastic.co/t/key-names-in-bucket-listing-are-truncated/63368/4 "2016-10-19T10:24:40Z")

</div>

OK, i solved my problem specifying "not\_analyzed" in the mapping for the field "pod\_id"

Is this the right way to avoid this ?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 19, 2016, 11:11am UTC](https://discuss.elastic.co/t/key-names-in-bucket-listing-are-truncated/63368/5 "2016-10-19T11:11:44Z")

</div>

Yes it is.

Note that in 5.0 type `string` has been replaced by `text` or `keyword`. You'll be able to run aggs on the later not the former.

---

<div class="post-metadata">

**Author:** ![frederes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frederes/32/12476_2.png) [@frederes](https://discuss.elastic.co/u/frederes)\
**Post date:** [October 19, 2016, 2:50pm UTC](https://discuss.elastic.co/t/key-names-in-bucket-listing-are-truncated/63368/6 "2016-10-19T14:50:43Z")

</div>

Thank you so much 😉

---

<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, 10:11pm UTC](https://discuss.elastic.co/t/key-names-in-bucket-listing-are-truncated/63368/7 "2017-07-05T22:11:10Z")

</div>


