# Update Field Type

**URL:** <https://discuss.elastic.co/t/update-field-type/284875>\
**Category:** Elasticsearch\
**Created:** [September 22, 2021, 1:42pm UTC](https://discuss.elastic.co/t/update-field-type/284875 "2021-09-22T13:42:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brintha](https://avatars.discourse-cdn.com/v4/letter/b/ba9def/32.png) [@Brintha](https://discuss.elastic.co/u/Brintha)\
**Post date:** [September 22, 2021, 1:42pm UTC](https://discuss.elastic.co/t/update-field-type/284875/1 "2021-09-22T13:42:03Z")

</div>

Hello , Can anyone please help me ,how to update field type in existing index .I have no option to reindex .i want to convert long to keyword

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [September 22, 2021, 1:57pm UTC](https://discuss.elastic.co/t/update-field-type/284875/2 "2021-09-22T13:57:14Z")

</div>

I don't think you can [update a field type](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html#updating-field-mappings) without reindex.

---

<div class="post-metadata">

**Author:** ![Brintha](https://avatars.discourse-cdn.com/v4/letter/b/ba9def/32.png) [@Brintha](https://discuss.elastic.co/u/Brintha)\
**Post date:** [September 23, 2021, 5:37am UTC](https://discuss.elastic.co/t/update-field-type/284875/3 "2021-09-23T05:37:33Z")

</div>

is anyother solution , bcz we have ah laks of data so reindexing is not possible

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 23, 2021, 6:03am UTC](https://discuss.elastic.co/t/update-field-type/284875/4 "2021-09-23T06:03:13Z")

</div>

You could try a runtime field - [Runtime fields | Elasticsearch Guide [7.15] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/runtime.html)

But it'll likely be resource heavy.

---

<div class="post-metadata">

**Author:** ![Brintha](https://avatars.discourse-cdn.com/v4/letter/b/ba9def/32.png) [@Brintha](https://discuss.elastic.co/u/Brintha)\
**Post date:** [September 23, 2021, 6:26am UTC](https://discuss.elastic.co/t/update-field-type/284875/5 "2021-09-23T06:26:49Z")

</div>

I will check this,Thank you for your valuable time

---

<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:** [October 21, 2021, 6:27am UTC](https://discuss.elastic.co/t/update-field-type/284875/6 "2021-10-21T06:27:26Z")

</div>

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