version_type support in bulk api

_version_type was considered part of data. Fixed.

Signed-off-by: Max Kutsevol <max@coolvds.com>
This commit is contained in:
Max Kutsevol
2014-03-03 00:48:24 +02:00
parent 2388ecd64a
commit 5e9f419469
+1 -1
View File
@@ -22,7 +22,7 @@ def expand_action(data):
op_type = data.pop('_op_type', 'index')
action = {op_type: {}}
for key in ('_index', '_parent', '_percolate', '_routing', '_timestamp',
'_ttl', '_type', '_version', '_id', '_retry_on_conflict'):
'_ttl', '_type', '_version', '_version_type', '_id', '_retry_on_conflict'):
if key in data:
action[op_type][key] = data.pop(key)