【文件属性】:
文件名称:es-reindex:Ruby脚本复制ElasticSearch索引(重新索引)
文件大小:5KB
文件格式:ZIP
更新时间:2021-03-26 14:02:50
Ruby
es-reindex-用于复制ElasticSearch索引的简单ruby脚本
简单的ruby脚本,用于复制和重新索引ElasticSearch索引,复制索引设置和映射。
在滚动过程中将显示进度和时间估计。
要求
需要Ruby 1.8.6或更高版本,为方便起见,请使用 。
通过Gemfile需要以下宝石:
[rest-client]( )
[oj]( )
您可以通过bundler在本地安装需求:
$ bundle install --path=.bundle
用法
请参阅脚本的帮助:
$ ./es-reindex.rb -h
Script to copy particular ES index including its (re)creation w/options set
and mapping copied.
Usage:
./es-reindex.rb [-r]
【文件预览】:
es-reindex-master
----LICENSE(1KB)
----README.markdown(2KB)
----Gemfile(92B)
----.gitignore(33B)
----es-reindex.rb(7KB)