elasticsearch摸石头过河——数据导入(五)

    elasticsearch 提供了restful API 与 java API 两种方式来进行通讯

 我们先以批量数据导入 入手:   

    bulk导入 命令:

    curl -H "Content-Type: application/json" -XPOST '192.168.x.xxx:9200/_index/_type/_bulk?pretty&refresh' --data-binary @"all.json"  all.json 就是当前文件 json格式

    索引删除

    curl -XDELETE http://192.168.x.xxx:9200/xx(索引名称)

    

 

 

性能测试工具: https://blog.csdn.net/laoyang360/article/details/52155481

posted @ 2018-11-12 15:59  中年油腻叔  阅读(133)  评论(0编辑  收藏  举报