Fix bulk insert docs (#832)
This commit is contained in:
+3
-2
@@ -83,10 +83,11 @@ document is like ``{"word": "<myword>"}``.
|
|||||||
for word in mywords:
|
for word in mywords:
|
||||||
yield {
|
yield {
|
||||||
"_index": "mywords",
|
"_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
|
For a more complete and complex example please take a look at
|
||||||
|
|||||||
Reference in New Issue
Block a user