Creating replica though replica creatin set to 0

Hello,

I have 3-node cluster setup of ElasticSearch. I want to try out how replication works and in order to test the same I have created a sample index using query given below. Here idea is to create 0 replicas, however still I can see the index get created in all the nodes, according to me this should not have created the same index in other nodes as "number_of_replicas":0 here?

curl -XPUT 'localhost:9200/sampleindexes?pretty' -H 'Content-Type: application/json' -d '
{
"settings":{
"number_of_shards":2,
"number_of_replicas":0
}
}
'

Thanks,

Please confirm output of _cat/shards to make sure that you are seeing only primary shards being allocated to the other nodes.