From 4849fbedb255a660d9a39b2c38db64e1fc8ec83b Mon Sep 17 00:00:00 2001 From: Ondrej Sika Date: Mon, 5 May 2014 12:16:13 +0200 Subject: [PATCH] fix example --- docs/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.rst b/docs/index.rst index a9c869fb..ce9554c8 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -43,7 +43,7 @@ Example Usage 'timestamp': datetime(2010, 10, 10, 10, 10, 10) } res = es.index(index="test-index", doc_type='tweet', id=1, body=doc) - print(res['ok']) + print(res['created']) res = es.get(index="test-index", doc_type='tweet', id=1) print(res['_source'])