diff --git a/docs/helpers.rst b/docs/helpers.rst index ed58bd92..c1b52608 100644 --- a/docs/helpers.rst +++ b/docs/helpers.rst @@ -83,10 +83,11 @@ document is like ``{"word": ""}``. 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