# Aggregatable fields change after renaming them ? Elasticsearch 6.7

**URL:** <https://discuss.elastic.co/t/aggregatable-fields-change-after-renaming-them-elasticsearch-6-7/178967>\
**Category:** Elasticsearch\
**Created:** [April 29, 2019, 5:25pm UTC](https://discuss.elastic.co/t/aggregatable-fields-change-after-renaming-them-elasticsearch-6-7/178967 "2019-04-29T17:25:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohammedayub44](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammedayub44/32/43280_2.png) [@mohammedayub44](https://discuss.elastic.co/u/mohammedayub44)\
**Post date:** [April 29, 2019, 5:25pm UTC](https://discuss.elastic.co/t/aggregatable-fields-change-after-renaming-them-elasticsearch-6-7/178967/1 "2019-04-29T17:25:08Z")

</div>

Hi ,

I'm wondering why my elasticsearch mappings are changing automatically after I rename fields like "city", "state", "statefp" etc. Also, this is effecting which fields can be aggregatable on the Kibana side.

Before:  
I have my mapping as below:

![image](https://us1.discourse-cdn.com/elastic/original/3X/2/7/27711dcf1cfb6efe8d3dc5c0b315f0e403488f1a.png)

It gets interpreted as below: (it assigns 'type' and 'ignore above' fields)

![image](https://us1.discourse-cdn.com/elastic/original/3X/8/9/890c11f68d158c56e2dd67d411b4ef12a359a839.png)

After: However after I rename them to "geocoded\_city" and "geocoded\_state" etc.. They are treated very differently by the elasticsearch analyzer. I have not changed anything else.

Here is mapping after renaming:

![image](https://us1.discourse-cdn.com/elastic/original/3X/8/b/8bfe45c875a9e978f4c2152a76aa556890d7bf9e.png)

Interpreted as : ( **Does not assign keyword now** )

![image](https://us1.discourse-cdn.com/elastic/original/3X/8/f/8f584602edd839158f76079e9d98cd7220ea9484.png)

Any reason why this happens?

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:** [May 27, 2019, 5:25pm UTC](https://discuss.elastic.co/t/aggregatable-fields-change-after-renaming-them-elasticsearch-6-7/178967/2 "2019-05-27T17:25:15Z")

</div>

Closed on May 27, 2019, 5:25pm UTC

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