TomonoriSoejima / Tejun

notes related to working cases
5 stars 3 forks source link

how to shrink #60

Open TomonoriSoejima opened 3 years ago

TomonoriSoejima commented 3 years ago
PUT url.0.2_3_0/_settings
{
"index.blocks.write" : true
}

POST /index/_shrink/index-1

DELETE index

POST /_aliases
{
  "actions" : [
    { "add" : { "index" : "index-1", "alias" : "index" } }
  ]
}
TomonoriSoejima commented 2 years ago
PUT url.0.2_3_0/
{
  "settings": { 
  "number_of_shards": 2
  }
}

PUT url.0.2_3_0/_settings
{
"index.blocks.write" : true
}

POST /url.0.2_3_0/_shrink/index-1