Fix bulk insert docs (#832)

This commit is contained in:
Aly Sivji
2018-08-06 14:28:56 -05:00
committed by Nick Lang
parent 67deac55c4
commit cb6f09bbe7
+3 -2
View File
@@ -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