Advertisement
Guest User

Untitled

a guest
May 24th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from elasticsearch import Elasticsearch
  2.  
  3. es_host = {"host": "192.168.2.33", "port": 9200}
  4. es = Elasticsearch([es_host])
  5.  
  6. request = {
  7.         ## Build your request here
  8.     }
  9. es_response = es.search(doc_type="tweet", index="tweets", body=request, size=3400)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement