Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/guide/examples.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ the Python client.
=== Indexing a document

To index a document, you need to specify three pieces of information: `index`,
`id`, and a `body`:
`id`, and a `document`:

[source,py]
----------------------------
Expand Down Expand Up @@ -79,7 +79,7 @@ for hit in resp['hits']['hits']:
=== Updating a document

To update a document, you need to specify three pieces of information: `index`,
`id`, and a `body`:
`id`, and a `doc`:

[source,py]
----------------------------
Expand All @@ -93,7 +93,7 @@ doc = {
'text': 'Interensting modified content...',
'timestamp': datetime.now(),
}
resp = client.update(index="test-index", id=1, document=doc)
resp = client.update(index="test-index", id=1, doc=doc)
print(resp['result'])
----------------------------

Expand All @@ -108,4 +108,4 @@ method:
[source,py]
----------------------------
client.delete(index="test-index", id=1)
----------------------------
----------------------------