From 09efa158130001aec26f7972a8f68bf4c788ba0c Mon Sep 17 00:00:00 2001 From: Jason Veatch Date: Wed, 9 Sep 2015 15:02:09 -0400 Subject: [PATCH] Clarified _op_type options in streaming_bulk docstring. --- elasticsearch/helpers/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/elasticsearch/helpers/__init__.py b/elasticsearch/helpers/__init__.py index 98aeac6b..eb9c787e 100644 --- a/elasticsearch/helpers/__init__.py +++ b/elasticsearch/helpers/__init__.py @@ -66,8 +66,9 @@ def streaming_bulk(client, actions, chunk_size=500, raise_on_error=True, Alternatively, if `_source` is not present, it will pop all metadata fields from the doc and use the rest as the document data. - If you wish to perform other operations, like `delete` or `update` use the - `_op_type` field in your actions (`_op_type` defaults to `index`):: + The :meth:`~elasticsearch.Elasticsearch.bulk` api accepts `index`, `create`, + `delete`, and `update` actions. Optionally use the `_op_type` field to specify + an action (`_op_type` defaults to `index`):: { '_op_type': 'delete',