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

Please share your configuration for the two clusters.