number of shards for elasticsearch index code example
Example: how to define sharding while creating an index in elasticsearch
PUT /my-index-000001
{
"settings": {
"index": {
"number_of_shards": 3,
"number_of_replicas": 2
}
}
}