You can also copy the data folder from under ES dev -test -prod and so on. But I suspect that's not something which you might want? Look at the 3rd step here. https://www.elastic.co/guide/en/elasticsearch/reference/current/rolling-upgrades.html. This essentially copies all of your data between versions which you can use for all three of your environments. But your dev data might be different than test and prod data. If you just want saved objects then exporting the json and importing it is the way to go.
Thank you for the reply.
Option1 which you suggested is NOT feasible in our case as we use automated deployments.
Option2 seems interesting. Let me have a look if we can make into a possibility to ensure all systems are in-line on automated deployments.
Update:
Option2: when we copy data/config to ES, does it require stop and upgrade? As per Step3, it asks to stop & upgrade. Any tricks, so can we push config changes via an API?
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.