Help Center> Cloud Search Service> FAQs> Open Source Search Engine Consulting> Can I Change the Number of Shards to Four with Two Replicas When There Is One Shard Set in the JSON File?
Updated on 2023-09-20 GMT+08:00

Can I Change the Number of Shards to Four with Two Replicas When There Is One Shard Set in the JSON File?

Once an index is created, the number of primary shards cannot be changed.

You can run the following command in Kibana to change the number of replicas:

PUT /indexname/_settings
{
"number_of_replicas" :1       //Number of replicas
}

index specifies the index name. Set this parameter based on site requirements.

Open Source Search Engine Consulting FAQs

more