Reindexing during index switch

Hello,
I am new to elastic search so treat me in that way , currently i am working on elastic search version 6.3 and successfully implemented and deployed elastic search . But i am facing problems when there are changes in my templates , i have to re- index all of my documents and the mean time if any new doc is indexed remains in old index . Can you help me in this matter .
I am thinking that if we design a function that can reindex all documents and the some how find out when indexing is complete and about new docs that have been indexed in old index then it can be solved , is it possible ??

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