python往es数据库插入数据时,报错failed to parse field [bidAmountYuan] of type [integer]

使用python从mongodb往es中插入数据时,有时候数据会报错failed to parse field [bidAmountYuan] of type [integer],
比如这条数据

img

其他的就可以进去啊,是为什么呢
插入的时候就是简单的取出来了

'budgetYuan':i.get('budgetYuan'),

img

插入的数据类型移出了,你可以将es的数据类型改成double或者long试一下

如果觉得答案对你有帮助,请点击下采纳,谢谢~