How to use the same Elastic Search Index in Multiple Environments in same server

How can i maintain different set of data in 2 different clusters so that i can use 1 cluster for dev environment and another cluster for test environment