Modifying Elasticsearch Mapping and Reindexing Real-Time Data

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?

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.

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.