1.查看全部的索引状态(open/close)
/_cat/indices?veg:
curl 127.0.0.1:9200/_cat/indices?v|grep "close"
2.打开/关闭索引
post /_close?prettypost /_open?pretty
eg:
curl -XPOST 'curl 127.0.0.1:9200/tttt/_close?pretty'
3.拷贝
curl -XPOST "http://localhost:9200/_reindex" -d '{
"source": {
"index": "tttt"
},
"dest": {
"index": "new_tttt_001",
"op_type": "create"
}
}'
[?]4.如何向索引插入大文件呢?
参考:
http://cwiki.apachecn.org/pages/viewpage.action?pageId=4882797
https://blog.csdn.net/napoay/article/details/73251965#11-%E5%88%9B%E5%BB%BA%E7%B4%A2%E5%BC%95
https://my.oschina.net/TOW/blog/711196
http://cwiki.apachecn.org/pages/viewpage.action?pageId=4882797
https://blog.csdn.net/napoay/article/details/73251965#11-%E5%88%9B%E5%BB%BA%E7%B4%A2%E5%BC%95
https://my.oschina.net/TOW/blog/711196
没有评论:
发表评论