# Creation of the index .scripts ignore number\_of\_shards

**URL:** <https://discuss.elastic.co/t/creation-of-the-index-scripts-ignore-number-of-shards/52913>\
**Category:** Elasticsearch\
**Created:** [June 15, 2016, 7:25pm UTC](https://discuss.elastic.co/t/creation-of-the-index-scripts-ignore-number-of-shards/52913 "2016-06-15T19:25:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![robert.volkmann](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@robert.volkmann](https://discuss.elastic.co/u/robert.volkmann)\
**Post date:** [June 15, 2016, 7:25pm UTC](https://discuss.elastic.co/t/creation-of-the-index-scripts-ignore-number-of-shards/52913/1 "2016-06-15T19:25:20Z")

</div>

Hi all,

I have installed the latest version of elasticsearch (2.3.3) and configure my cluster with a number of shards greater than one. (elasticsearch.yml contains number\_of\_shards: 9)

Now, if I create the index .scripts with a number\_of\_shards equal to one, then it has more than one shard.

curl -XPUT 'http://\*/.scripts/' -d '{  
"settings" : {  
"index" : {  
"number\_of\_shards" : 1,  
"number\_of\_replicas" : 0  
}  
}  
}'

Can anyone explain me this behavior?

Thanks.

---

<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:** [June 16, 2016, 8:05am UTC](https://discuss.elastic.co/t/creation-of-the-index-scripts-ignore-number-of-shards/52913/2 "2016-06-16T08:05:01Z")

</div>

Hey,

this looks like a bug to me. I opened [an issue](https://github.com/elastic/elasticsearch/issues/18912) for that.

Thanks for reporting and please add any more useful information to the issue that I might have missed.

--Alex

---

<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:** [June 21, 2016, 7:06am UTC](https://discuss.elastic.co/t/creation-of-the-index-scripts-ignore-number-of-shards/52913/3 "2016-06-21T07:06:49Z")

</div>

Hey,

this was fixed in [https://github.com/elastic/elasticsearch/pull/18965](https://github.com/elastic/elasticsearch/pull/18965)

--Alex

---

<div class="post-metadata">

**Author:** ![robert.volkmann](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@robert.volkmann](https://discuss.elastic.co/u/robert.volkmann)\
**Post date:** [June 30, 2016, 7:16am UTC](https://discuss.elastic.co/t/creation-of-the-index-scripts-ignore-number-of-shards/52913/4 "2016-06-30T07:16:44Z")

</div>

Thanks.

---

<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 5, 2017, 10:39pm UTC](https://discuss.elastic.co/t/creation-of-the-index-scripts-ignore-number-of-shards/52913/5 "2017-07-05T22:39:17Z")

</div>


