Skip to content

Commit 09efa15

Browse files
committed
Clarified _op_type options in streaming_bulk docstring.
1 parent edbf7ec commit 09efa15

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

elasticsearch/helpers/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ def streaming_bulk(client, actions, chunk_size=500, raise_on_error=True,
6666
Alternatively, if `_source` is not present, it will pop all metadata fields
6767
from the doc and use the rest as the document data.
6868
69-
If you wish to perform other operations, like `delete` or `update` use the
70-
`_op_type` field in your actions (`_op_type` defaults to `index`)::
69+
The :meth:`~elasticsearch.Elasticsearch.bulk` api accepts `index`, `create`,
70+
`delete`, and `update` actions. Optionally use the `_op_type` field to specify
71+
an action (`_op_type` defaults to `index`)::
7172
7273
{
7374
'_op_type': 'delete',

0 commit comments

Comments
 (0)