Updating 'New Index'-Function with options for shards and replicas.