hey, I want to change my Default no of shard in Es 2.1.1 version...but i am not getting any option in elasticsearch.yml file.
So i tried while creating index its showing me this error.
PUT kk
PUT kk/_settings
{
"number_of_shards": 20
}
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "can't change the number of shards for an index"
}
],
"type": "illegal_argument_exception",
"reason": "can't change the number of shards for an index"
},
"status": 400
Please help me out.