We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0453cc1 commit 38b136aCopy full SHA for 38b136a
docs/sphinx/index.rst
@@ -51,7 +51,7 @@ Example Usage
51
'text': 'Elasticsearch: cool. bonsai cool.',
52
'timestamp': datetime.now(),
53
}
54
- res = es.index(index="test-index", id=1, body=doc)
+ res = es.index(index="test-index", id=1, document=doc)
55
print(res['result'])
56
57
res = es.get(index="test-index", id=1)
0 commit comments