From cb6f09bbe74eca6cbf5bb2519c1f3d791c0dd820 Mon Sep 17 00:00:00 2001 From: Aly Sivji <4369343+alysivji@users.noreply.github.com> Date: Mon, 6 Aug 2018 14:28:56 -0500 Subject: [PATCH] Fix bulk insert docs (#832) --- docs/helpers.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/helpers.rst b/docs/helpers.rst index ed58bd92f..c1b52608f 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