wget https://github.com/SaltyLeo/i-book.in_Archive/raw/master/i-book.in.tar.gz && tar -zxvf i-book.in.tar.gz && cd web
#墙内无法访问GitHub使用下面这个
wget https://ibookin-1252237247.cos.ap-shanghai.myqcloud.com/i-book.in.tar.gz && tar -zxvf i-book.in.tar.gz && cd web
将索引数据导入到ES
python3 add2es.py
可能会弹出以下错误,但请忽略即可。
/usr/local/lib/python3.6/dist-packages/elasticsearch/connection/base.py:177: ElasticsearchDeprecationWarning: the default number of shards will change from [5] to [1] in 7.0.0; if you wish to continue using the default of [5] shards, you must manage this on the create index request or with an index template
warnings.warn(message, category=ElasticsearchDeprecationWarning)