Concept Flow - Deleting and closing indexes
Start
Choose index
Decide action
Close index
Send close
Index closed
End
You pick an index, decide to close or delete it, send the command, and the index is closed or deleted.
POST /my-index/_close DELETE /my-index
| Step | Action | Index | Command Sent | Result |
|---|---|---|---|---|
| 1 | Choose index | my-index | None | Ready to act |
| 2 | Decide to close | my-index | POST /my-index/_close | Index closing started |
| 3 | Index closed | my-index | None | Index is now closed |
| 4 | Choose index | my-index | None | Ready to act |
| 5 | Decide to delete | my-index | DELETE /my-index | Index deletion started |
| 6 | Index deleted | my-index | None | Index is now deleted |
| Variable | Start | After Close | After Delete |
|---|---|---|---|
| index_status | open | closed | deleted |
Deleting and closing indexes: - Closing an index makes it unavailable but keeps data. - Deleting removes the index and data completely. - Use POST /index/_close to close. - Use DELETE /index to delete. - Closed indexes can be reopened later.
my_index in Elasticsearch?_close endpoint.my_index.DELETE /test_index POST /test_index/_close GET /test_index/_settings
test_index permanently.POST /myindex/_close but got a 404 error. What is the most likely cause?myindex does not exist. -> Option DPOST /myindex/_close to close the index without deleting data.POST /myindex/_open to reopen the closed index and make it searchable again.Pass the test and this pattern moves unknown