I've to re-index the data if there is little change in the existing index.
I've already done reindexing with creating an alias of the index but in that , I've to wait while reindexing the data from one index to another. The index size is about 30 GB. it takes too long to re-index the existing data.
For little changes in Index or index settings you can use update API where you can update index settings ( No of replicas, refresh interval etc.) . Also, you can update documents and add field using update API in Elasticsearch.
For more understanding about API like how to update settings and add fields please refer below link.
I would say it depends on what kind of changes you want to make. Adding mapping or changing document structure can sometimes be done in place but changing mappings for existing fields often require reindexing.
To apply this i've to re-index all document to another index first which is created with new mappings. Then delete the old index and create alias of newly created index with the name of old index which is deleted.
Sorry for this, but I think it is possible in Elasticsearch with put mapping api. it is mentioned the same in documentation that we can add and update fields in existing Elasticsearch indices.
As example given by @Devang_Prajapati he is trying to add new fields in existing index and it is possible to do the same with `PUT mapping API.
Please find below related link for the same to add and update the mapping in existing API.
sorry @Devang_Prajapati as I gave you update API link as you asked in below query.
With the PUT mapping API you can create index. But once the index is created you can not be able to change or update existing field of that index without reindexing and creating alias.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.