Skip to content

Commit bf64a05

Browse files
committed
修复导出bulk文件工具类
1 parent 59b89a7 commit bf64a05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def write(self, index_id, body):
2424
"""
2525
文件写入
2626
"""
27-
self.bulk_fp.write(json.dumps({"index": {"_index": self._index, '_type': self._type, 'id': index_id}})+"\n")
27+
self.bulk_fp.write(json.dumps({"index": {"_index": self._index, '_type': self._type, '_id': index_id}})+"\n")
2828
self.bulk_fp.write(json.dumps(body)+"\n")
2929

3030
def close(self):

0 commit comments

Comments
 (0)