Skip to content

Commit cb6f09b

Browse files
alysivjifxdgear
authored andcommitted
Fix bulk insert docs (elastic#832)
1 parent 67deac5 commit cb6f09b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/helpers.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,11 @@ document is like ``{"word": "<myword>"}``.
8383
for word in mywords:
8484
yield {
8585
"_index": "mywords",
86-
"doc": {"word": myword},
86+
"_type": "document",
87+
"doc": {"word": word},
8788
}
8889
89-
bulk(es, gendata)
90+
bulk(es, gendata())
9091
9192
9293
For a more complete and complex example please take a look at

0 commit comments

Comments
 (0)