Support renamed routing bulk parameter (#735)

This commit is contained in:
ume
2018-03-05 08:13:52 +09:00
committed by Nick Lang
parent 058d38f0ae
commit 4e95fe320d
+1 -1
View File
@@ -36,7 +36,7 @@ def expand_action(data):
data = data.copy()
op_type = data.pop('_op_type', 'index')
action = {op_type: {}}
for key in ('_index', '_parent', '_percolate', '_routing', '_timestamp',
for key in ('_index', '_parent', '_percolate', '_routing', '_timestamp', 'routing',
'_type', '_version', '_version_type', '_id',
'retry_on_conflict', 'pipeline'):
if key in data: