# Modifying Elasticsearch Mapping and Reindexing Real-Time Data

**URL:** <https://discuss.elastic.co/t/modifying-elasticsearch-mapping-and-reindexing-real-time-data/365275>\
**Category:** Elasticsearch\
**Created:** [August 21, 2024, 12:07pm UTC](https://discuss.elastic.co/t/modifying-elasticsearch-mapping-and-reindexing-real-time-data/365275 "2024-08-21T12:07:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Monica\_Andhare](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/monica_andhare/32/134074_2.png) [@Monica\_Andhare](https://discuss.elastic.co/u/Monica_Andhare)\
**Post date:** [August 21, 2024, 12:07pm UTC](https://discuss.elastic.co/t/modifying-elasticsearch-mapping-and-reindexing-real-time-data/365275/1 "2024-08-21T12:07:57Z")

</div>

Hi, Is there any way to modify the mapping of an Elasticsearch index without needing to reindex the data? If not, what is the most optimal approach to reindex an index that is receiving real-time data?

---

<div class="post-metadata">

**Author:** ![RabBit\_BR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rabbit_br/32/82261_2.png) [@RabBit\_BR](https://discuss.elastic.co/u/RabBit_BR)\
**Post date:** [August 21, 2024, 11:32pm UTC](https://discuss.elastic.co/t/modifying-elasticsearch-mapping-and-reindexing-real-time-data/365275/2 "2024-08-21T23:32:25Z")

</div>

Hi @Monica_Andhare

What type modification? Creation a new field or change type existing field?  
What compoments your flux ingestion? If you give more details will be better to suggest a solution.

---

<div class="post-metadata">

**Author:** ![Monica\_Andhare](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/monica_andhare/32/134074_2.png) [@Monica\_Andhare](https://discuss.elastic.co/u/Monica_Andhare)\
**Post date:** [August 22, 2024, 5:54am UTC](https://discuss.elastic.co/t/modifying-elasticsearch-mapping-and-reindexing-real-time-data/365275/3 "2024-08-22T05:54:37Z")

</div>

Hi @RabBit_BR ,

Thanks for getting back to me.  
I want to modify an existing field in our Elasticsearch index.

e.g. Previously, the vinNo field was defined as: "vinno": {  
"type": "keyword"  
}

Now, I need to change it to: "vinno": {  
"type": "text",  
"analyzer": "autocomplete\_analyzer",  
"search\_analyzer": "standard"  
}

I'm ingesting data through a Node.js service that consumes from a Kafka topic and indexes the data into Elasticsearch.
