Modifying elasticsearch index settings
To view the settings of an index run the following at the command-line…
curl -XGET http://hostname:9200/indexname/_settings
From here you can indeify the setting you need and modify it as you wish. This example sets the number of replicas to zero.
curl -XPUT http://hostname:9200/indexname/_settings -d '{ "index": {"number_of_replicas":"0"}}'
For further details see the manual.