# Error when update number\_of\_replicas

**URL:** https://discuss.elastic.co/t/error-when-update-number-of-replicas/20178
**Category:** Elasticsearch
**Created:** [October 10, 2014, 10:03am UTC](https://discuss.elastic.co/t/error-when-update-number-of-replicas/20178 "2014-10-10T10:03:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Lee\_Chuen\_Ooi](https://avatars.discourse-cdn.com/v4/letter/l/91b2a8/32.png) [@Lee\_Chuen\_Ooi](https://discuss.elastic.co/u/Lee_Chuen_Ooi)
#### Post date: [October 10, 2014, 10:03am UTC](https://discuss.elastic.co/t/error-when-update-number-of-replicas/20178/1 "2014-10-10T10:03:06Z")

</div>

Hi,  
I am following documentation explained via  
[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-update-settings.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-update-settings.html)

When I run this command, I got acknowledged= True, followed by error  
messages below.

C:\>curl -XPUT "localhost:9200/qsearch\_perf/\_settings" -d ' { "index" : {  
"number\_of\_replicas" : 4 } }'

{"acknowledged":true}curl: (3) [globbing] unmatched brace in column 1  
curl: (6) Could not resolve host: index  
curl: (7) Failed to connect to port 80: Connection refused  
curl: (3) [globbing] unmatched brace in column 1  
curl: (6) Could not resolve host: number\_of\_replicas  
curl: (7) Failed to connect to port 80: Connection refused  
curl: (6) Could not resolve host: 4  
curl: (3) [globbing] unmatched close brace/bracket in column 1  
curl: (3) [globbing] unmatched close brace/bracket in column 1

Can you pls let me know what's wrong with my command?  
I have closed qsearch\_perf index before I run this command.

Besides, I can't run this command in separate lines in CURL, It prompt me  
error. I have to run this command in 1 line in curl.  
Is this expected behavior in CURL?

Thanks.

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1e03f32a-45d1-4e2f-a98a-cd7b6ed22bbd%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1e03f32a-45d1-4e2f-a98a-cd7b6ed22bbd%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:57am UTC](https://discuss.elastic.co/t/error-when-update-number-of-replicas/20178/2 "2017-07-06T00:57:06Z")

</div>


