Default shards and replicas

it looks like you can find your answer at the link below

I used to do this in the configuration file but it appeared "using REST" is the preferred method as discussed in the thread above.