Update index.rst (#771)
This commit is contained in:
+1
-1
@@ -64,7 +64,7 @@ Example Usage
|
|||||||
'timestamp': datetime.now(),
|
'timestamp': datetime.now(),
|
||||||
}
|
}
|
||||||
res = es.index(index="test-index", doc_type='tweet', id=1, body=doc)
|
res = es.index(index="test-index", doc_type='tweet', id=1, body=doc)
|
||||||
print(res['created'])
|
print(res['result'])
|
||||||
|
|
||||||
res = es.get(index="test-index", doc_type='tweet', id=1)
|
res = es.get(index="test-index", doc_type='tweet', id=1)
|
||||||
print(res['_source'])
|
print(res['_source'])
|
||||||
|
|||||||
Reference in New Issue
Block a user