Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from elasticsearch import Elasticsearch
- es_host = {"host": "192.168.2.33", "port": 9200}
- es = Elasticsearch([es_host])
- request = {
- ## Build your request here
- }
- es_response = es.search(doc_type="tweet", index="tweets", body=request, size=3400)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement