Skip to content

Commit

Permalink
Fix bulk insert docs (#832)
Browse files Browse the repository at this point in the history
  • Loading branch information
alysivji authored and fxdgear committed Aug 6, 2018
1 parent 67deac5 commit cb6f09b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/helpers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,11 @@ document is like ``{"word": "<myword>"}``.
for word in mywords:
yield {
"_index": "mywords",
"doc": {"word": myword},
"_type": "document",
"doc": {"word": word},
}
bulk(es, gendata)
bulk(es, gendata())
For a more complete and complex example please take a look at
Expand Down

0 comments on commit cb6f09b

Please sign in to comment.