# Why was the setting which sent by curl useless?

**URL:** <https://discuss.elastic.co/t/why-was-the-setting-which-sent-by-curl-useless/14112>\
**Category:** Elasticsearch\
**Created:** [October 25, 2013, 10:21am UTC](https://discuss.elastic.co/t/why-was-the-setting-which-sent-by-curl-useless/14112 "2013-10-25T10:21:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kunlin\_nie](https://avatars.discourse-cdn.com/v4/letter/k/5e9695/32.png) [@kunlin\_nie](https://discuss.elastic.co/u/kunlin_nie)\
**Post date:** [October 25, 2013, 10:21am UTC](https://discuss.elastic.co/t/why-was-the-setting-which-sent-by-curl-useless/14112/1 "2013-10-25T10:21:21Z")

</div>

Hi,  
I am learning use ES now.Today when i sent request to the ES i get  
some problem.  
I want create a index named "test".So I followed the demo on the  
elasticsearch.org.

$ curl -XPUT '[http://localhost:9200/test/](http://localhost:9200/test/)' -d '{  
"settings" : {  
"index" : {  
"number\_of\_shards" : 3,  
"number\_of\_replicas" : 0  
}  
}  
}'

The index was created successfully.But Why was the setting useless? There were also 5 shards and 1 replicas in the index.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [October 25, 2013, 11:43am UTC](https://discuss.elastic.co/t/why-was-the-setting-which-sent-by-curl-useless/14112/2 "2013-10-25T11:43:40Z")

</div>

On 25 October 2013 12:21, kunlin nie [niekunlin89@gmail.com](mailto:niekunlin89@gmail.com) wrote:

> curl -XPUT '[http://localhost:9200/test/](http://localhost:9200/test/)' -d '{  
> "settings" : {  
> "index" : {  
> "number\_of\_shards" : 3,  
> "number\_of\_replicas" : 0  
> }  
> }  
> }'

This works correctly for me.

Are you sure the index didn't already exist?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:10am UTC](https://discuss.elastic.co/t/why-was-the-setting-which-sent-by-curl-useless/14112/3 "2017-07-06T02:10:38Z")

</div>


