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'])