# Elasticsearch shards not able to set 1

**URL:** https://discuss.elastic.co/t/elasticsearch-shards-not-able-to-set-1/106979
**Category:** Elasticsearch
**Created:** [November 9, 2017, 7:04am UTC](https://discuss.elastic.co/t/elasticsearch-shards-not-able-to-set-1/106979 "2017-11-09T07:04:54Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Shekhar\_Pandey](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Shekhar\_Pandey](https://discuss.elastic.co/u/Shekhar_Pandey)
#### Post date: [November 9, 2017, 7:04am UTC](https://discuss.elastic.co/t/elasticsearch-shards-not-able-to-set-1/106979/1 "2017-11-09T07:04:54Z")

</div>

I try to change the shards by default from 5 to 1 using settings options like this..

{  
"index":{  
"number\_of\_shards": 1,  
"number\_of\_replicas": 0  
},

"settings": {  
"analysis": {  
"filter": {  
"nG.....

its' showing acknowledgement true...but when I checked on using curl...it again showing shards 5 and replica 1. Why it not change....

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [November 9, 2017, 7:31am UTC](https://discuss.elastic.co/t/elasticsearch-shards-not-able-to-set-1/106979/2 "2017-11-09T07:31:30Z")

</div>

You cannot change the shard count once the index is created.

---

<div class="post-metadata">

### Author: ![Shekhar\_Pandey](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Shekhar\_Pandey](https://discuss.elastic.co/u/Shekhar_Pandey)
#### Post date: [November 9, 2017, 8:03am UTC](https://discuss.elastic.co/t/elasticsearch-shards-not-able-to-set-1/106979/3 "2017-11-09T08:03:02Z")

</div>

Hi warkolm..

But I am changing shards index time..not after...creation...

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [November 9, 2017, 8:16am UTC](https://discuss.elastic.co/t/elasticsearch-shards-not-able-to-set-1/106979/4 "2017-11-09T08:16:24Z")

</div>

When are you sending this to Elasticsearch, how are you sending it?

---

<div class="post-metadata">

### Author: ![Shekhar\_Pandey](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Shekhar\_Pandey](https://discuss.elastic.co/u/Shekhar_Pandey)
#### Post date: [November 9, 2017, 8:45am UTC](https://discuss.elastic.co/t/elasticsearch-shards-not-able-to-set-1/106979/5 "2017-11-09T08:45:31Z")

</div>

Sir, I am sending it to using curl...while doing settings and mapping....itself....when I am sending it through kibana..it saying acknowledgement true.....but when checking through settings options...shards again 5....

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [November 10, 2017, 9:27am UTC](https://discuss.elastic.co/t/elasticsearch-shards-not-able-to-set-1/106979/6 "2017-11-10T09:27:31Z")

</div>

please provide a **full** reproduction of **all** your steps. All the curl calls you did. Otherwise it is impossible yo help you.

---

<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: [December 8, 2017, 9:28am UTC](https://discuss.elastic.co/t/elasticsearch-shards-not-able-to-set-1/106979/7 "2017-12-08T09:28:02Z")

</div>

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