Allow stats_only parameter to bulk from reindex to be overridden

Fixes #218
This commit is contained in:
Honza Král
2015-04-19 17:28:20 +02:00
parent 90022ad91f
commit eee5701dd0
+5 -1
View File
@@ -298,5 +298,9 @@ def reindex(client, source_index, target_index, query=None, target_client=None,
h['_index'] = index
yield h
kwargs = {
'stats_only': True,
}
kwargs.update(bulk_kwargs)
return bulk(target_client, _change_doc_index(docs, target_index),
chunk_size=chunk_size, stats_only=True, **bulk_kwargs)
chunk_size=chunk_size, **kwargs)