How to set number_of_replicas at creation index at elasticsearch?

How to set number_of_replicas at creation index at elasticsearch ?
I am using template with

{
"index": {
"number_of_replicas": "0",
"mapping": {
"total_fields": {
"limit": "10000"
}
},
"refresh_interval": "5s"
}
}

But index setting after creation is "number_of_replicas": "1",

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.