There was an error while loading. Please reload this page.
1 parent 72f661f commit a8d9ffdCopy full SHA for a8d9ffd
docs/index.rst
@@ -46,7 +46,7 @@ Example Usage
46
doc = {
47
'author': 'kimchy',
48
'text': 'Elasticsearch: cool. bonsai cool.',
49
- 'timestamp': datetime(2010, 10, 10, 10, 10, 10)
+ 'timestamp': datetime.now(),
50
}
51
res = es.index(index="test-index", doc_type='tweet', id=1, body=doc)
52
print(res['created'])
0 commit comments