Skip to content

Commit 6f6c864

Browse files
committed
Bulk supports timeout parameter in new ES
1 parent 10ae841 commit 6f6c864

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

elasticsearch/client/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ def count(self, index=None, doc_type=None, body=None, params=None):
502502
params=params, body=body)
503503
return data
504504

505-
@query_params('consistency', 'refresh', 'replication')
505+
@query_params('consistency', 'refresh', 'replication', 'timeout')
506506
def bulk(self, body, index=None, doc_type=None, params=None):
507507
"""
508508
Perform many index/delete operations in a single API call.
@@ -519,6 +519,7 @@ def bulk(self, body, index=None, doc_type=None, params=None):
519519
:arg consistency: Explicit write consistency setting for the operation
520520
:arg refresh: Refresh the index after performing the operation
521521
:arg replication: Explicitly set the replication type (default: sync)
522+
:arg timeout: Explicit operation timeout
522523
"""
523524
_, data = self.transport.perform_request('POST', _make_path(index, doc_type, '_bulk'),
524525
params=params, body=self._bulk_body(body))

test_elasticsearch/rest-api-spec

0 commit comments

Comments
 (0)