# Were \_field\_names aggregations removed in 5.x?

**URL:** <https://discuss.elastic.co/t/were--field-names-aggregations-removed-in-5-x/68484>\
**Category:** Elasticsearch\
**Created:** [December 8, 2016, 8:55pm UTC](https://discuss.elastic.co/t/were--field-names-aggregations-removed-in-5-x/68484 "2016-12-08T20:55:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nipperstick](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nipperstick/32/13758_2.png) [@nipperstick](https://discuss.elastic.co/u/nipperstick)\
**Post date:** [December 8, 2016, 8:55pm UTC](https://discuss.elastic.co/t/were--field-names-aggregations-removed-in-5-x/68484/1 "2016-12-08T20:55:01Z")

</div>

I can't get this [1] to work in 5.x, and the documentation no longer includes aggregations [2].

1 - [https://www.elastic.co/guide/en/elasticsearch/reference/2.4/mapping-field-names-field.html](https://www.elastic.co/guide/en/elasticsearch/reference/2.4/mapping-field-names-field.html)

2 - [https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-field-names-field.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-field-names-field.html)

---

<div class="post-metadata">

**Author:** ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)\
**Post date:** [December 9, 2016, 6:35pm UTC](https://discuss.elastic.co/t/were--field-names-aggregations-removed-in-5-x/68484/2 "2016-12-09T18:35:13Z")

</div>

It looks like this was removed in 2.0 (see: [https://github.com/elastic/elasticsearch/pull/10893](https://github.com/elastic/elasticsearch/pull/10893)) and is no longer configurable (other than enabling or disabling the field).

I suspect the documentation was updated to remove the mentions for aggs since it can only be used for queries now.

---

<div class="post-metadata">

**Author:** ![nipperstick](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nipperstick/32/13758_2.png) [@nipperstick](https://discuss.elastic.co/u/nipperstick)\
**Post date:** [December 9, 2016, 7:05pm UTC](https://discuss.elastic.co/t/were--field-names-aggregations-removed-in-5-x/68484/3 "2016-12-09T19:05:38Z")

</div>

Thanks! Can you think of a way (other than managing the fields myself or using a key/value approach) to solve the same problem?

---

<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:** [January 6, 2017, 7:06pm UTC](https://discuss.elastic.co/t/were--field-names-aggregations-removed-in-5-x/68484/4 "2017-01-06T19:06:09Z")

</div>

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