Creation of the index .scripts ignore number_of_shards

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.

Hey,

this looks like a bug to me. I opened an issue for that.

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

--Alex

Hey,

this was fixed in https://github.com/elastic/elasticsearch/pull/18965

--Alex

Thanks.