Backing up, deleting, restoring elasticsearch indexes on an index folder

Most ElasticSearch documentation discusses working with indexes via the REST API - is there any reason why I cannot just move or delete index folders from disk?

+4
source share
2 answers

You can move data on a disk, to a point -

If Elasticsearch is running, it is never recommended that you move or delete the folder index, because Elasticsearch will not know what happened to the data, and you will receive all types FileNotFoundExceptionsin the logs, as well as the red indexes, until you delete them manually.

Elasticsearch , node ( , node ), , , Elasticsearch , , Elasticsearch . , Elasticsearch , , , , ES "foo", "foo", , , API REST.

- , , API REST, , , ES , , .

EDIT: , ( ) , Elasticsearch, . & ; API.

+4

: , , .

curl -XPOST "http://127.0.0.1:9200/*index_name*/_close"

, . , , :

curl -XPOST "http://127.0.0.1:9200/*index_name*/_delete"

, elasticsearch . ( ).

+5

All Articles