Answers for "how to create a new index in elasticsearch"

3

elastic create index

PUT /my-index-000001

// or with curl

curl -X PUT "localhost:9200/my-index-000001?pretty"
Posted by: Guest on September-11-2020
0

how to define sharding while creating an index in elasticsearch

PUT /my-index-000001
{
  "settings": {
    "index": {
      "number_of_shards": 3,  
      "number_of_replicas": 2 
    }
  }
}
Posted by: Guest on November-30-2020

Code answers related to "how to create a new index in elasticsearch"

Browse Popular Code Answers by Language