Skip to content

Commit

Permalink
update docs to reflect how bulk chunking api currently works
Browse files Browse the repository at this point in the history
  • Loading branch information
rholder committed Mar 31, 2015
1 parent 7714cf9 commit 29497d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyelasticsearch/client.py
Expand Up @@ -371,8 +371,8 @@ def documents():
# bulk_chunks() breaks your documents into smaller requests for speed:
for chunk in bulk_chunks(documents(),
docs_per_batch=500,
bytes_per_batch=10000):
docs_per_chunk=500,
bytes_per_chunk=10000):
# We specify a default index and doc type here so we don't
# have to repeat them in every operation:
es.bulk(chunk, doc_type='book', index='library')
Expand Down

0 comments on commit 29497d1

Please sign in to comment.