text 迁移弹性搜索

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 迁移弹性搜索相关的知识,希望对你有一定的参考价值。

#Elasticdump is an NPM package required for this purpose

# Get all indices
curl -XGET 'localhost:9200/_cat/indices?v'

# Get cluster health
curl -XGET "localhost:9200/_cluster/health"

# Get path to stored data and cluster info
curl -XGET 'localhost:9200/_nodes/stats/fs?pretty'

# Backup an index to JSON file 
elasticdump --input=http://localhost:9200 --input-index=index_name --output=index_mappings.json --type=mapping
elasticdump --input=http://localhost:9200 --input-index=index_name --output=index_data.json --type=data


# Delete all indices ES
curl -XDELETE 'http://localhost:9200/_all' 

以上是关于text 迁移弹性搜索的主要内容,如果未能解决你的问题,请参考以下文章