From 0aac8c9dff6458f6e72addef239bf4f917fb37e9 Mon Sep 17 00:00:00 2001 From: hari Date: Tue, 24 Apr 2018 23:03:29 +0530 Subject: [PATCH] Update index.rst (#771) --- docs/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.rst b/docs/index.rst index ed23c925..4452a19a 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -64,7 +64,7 @@ Example Usage 'timestamp': datetime.now(), } 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) print(res['_source'])