Clearer message regardings alternate bulk operations.

Fixes #107, thanks jwarzech!
This commit is contained in:
Honza Král
2014-08-02 14:31:47 +02:00
parent 8966902e40
commit e68786bc8a
+2 -2
View File
@@ -58,8 +58,8 @@ def streaming_bulk(client, actions, chunk_size=500, raise_on_error=False, expand
Alternatively, if `_source` is not present, it will pop all metadata fields Alternatively, if `_source` is not present, it will pop all metadata fields
from the doc and use the rest as the document data. from the doc and use the rest as the document data.
Alternative actions (`_op_type` field defaults to `index`) can be sent as If you wish to perform other operations, like `delete` or `update` use the
well:: `_op_type` field in your actions (`_op_type` defaults to `index`)::
{ {
'_op_type': 'delete', '_op_type': 'delete',