From 2bd7268ff36e7735281606804c3d19407718631c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Fri, 17 Jan 2014 14:32:39 +0100 Subject: [PATCH] Update bulk interface --- elasticsearch/client/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/elasticsearch/client/__init__.py b/elasticsearch/client/__init__.py index 88773d24..925ec4cc 100644 --- a/elasticsearch/client/__init__.py +++ b/elasticsearch/client/__init__.py @@ -503,11 +503,11 @@ class Elasticsearch(object): params=params, body=body) return data - @query_params('consistency', 'refresh', 'replication', 'timeout') + @query_params('consistency', 'refresh', 'routing', 'replication', 'timeout') def bulk(self, body, index=None, doc_type=None, params=None): """ Perform many index/delete operations in a single API call. - ``_ + ``_ See the :func:`~elasticsearch.helpers.bulk` helper function for a more friendly API. @@ -519,6 +519,7 @@ class Elasticsearch(object): :arg doc_type: Default document type for items which don't provide one :arg consistency: Explicit write consistency setting for the operation :arg refresh: Refresh the index after performing the operation + :arg routing: Specific routing value :arg replication: Explicitly set the replication type (default: sync) :arg timeout: Explicit operation timeout """