elastic 学习

1 安装 search

https://www.elastic.co/downloads/elasticsearch
下载
Run bin/elasticsearch (or bin\elasticsearch.bat on Windows)
http://localhost:9200/

2 CURL

3 安装 sense

https://www.elastic.co/downloads/kibana
Run bin/kibana (or bin\kibana.bat on Windows)
http://localhost:5601

./bin/kibana plugin --install elastic/sense
bin\kibana.bat plugin --install elastic/sense
bin\kibana-plugin install elastic/sense

http://localhost:5601/app/sense

4 获得查询的全部结果

scanResp = helpers.scan(es, _body, scroll= "10m", index= _index, doc_type= _doc_type, timeout="10m")  
     
for resp in scanResp:  
   print resp  

  

5 python elastic的文档

http://elasticsearch-dsl.readthedocs.io/en/latest/index.html

 

posted @ 2017-11-17 15:47  weihuchao  阅读(83)  评论(0)    收藏  举报