from elasticsearch import Elasticsearch
import requests
es=Elasticsearch([{'host':'localhost','port':9200}])
res=requests.get('http://localhost:9200')
while(res.status_code==200):
    es.index(index='sss',doc_type="shubham",id=1,body={"name":"shubham","age":22})

es.get(index='sss',doc_type="shubham",id=1)

f420bc045dd5124d83d4fb27e1ac19e22fa2d013
<mask token>

<mask token>
while res.status_code == 200:
    es.index(index='sss', doc_type='shubham', id=1, body={'name': 'shubham',
        'age': 22})
es.get(index='sss', doc_type='shubham', id=1)

<mask token>
es = Elasticsearch([{'host': 'localhost', 'port': 9200}])
res = requests.get('http://localhost:9200')
while res.status_code == 200:
    es.index(index='sss', doc_type='shubham', id=1, body={'name': 'shubham',
        'age': 22})
es.get(index='sss', doc_type='shubham', id=1)

from elasticsearch import Elasticsearch
import requests
es = Elasticsearch([{'host': 'localhost', 'port': 9200}])
res = requests.get('http://localhost:9200')
while res.status_code == 200:
    es.index(index='sss', doc_type='shubham', id=1, body={'name': 'shubham',
        'age': 22})
es.get(index='sss', doc_type='shubham', id=1)

from elasticsearch import Elasticsearch
import requests
es=Elasticsearch([{'host':'localhost','port':9200}])
res=requests.get('http://localhost:9200')
while(res.status_code==200):
    es.index(index='sss',doc_type="shubham",id=1,body={"name":"shubham","age":22})

es.get(index='sss',doc_type="shubham",id=1)
