mongo-connector icon indicating copy to clipboard operation
mongo-connector copied to clipboard

elasticsearch.helpers.BulkIndexError: ('2 document(s) failed to index.'

Open zhangxuan494 opened this issue 5 years ago • 3 comments

Hello: Cause my commpany's requirement,i use mon-connector for mongo's data import ES.But,i find since ES6.X one index can't support multi types.Objective reasons,i cann't change my commpany's mongo's data.And abvious your codes cann't solve my problem ,even cann't solve most of commpany's problem. I try to modify file <elastic2_doc_manager.py>,and i modify doc_type to index,it means index and type are some word .Finally,i success,this is my elasticsearch-head's result 图片 I hope you can update your codes so that can support recently ES,looking forward to your reply,thanks!

zhangxuan494 avatar Apr 23 '19 09:04 zhangxuan494

ES6 is known not to work yet. Any contributions to support ES6 would be appreciated. Can you send a diff or PR for the changes you made? Hopefully someone will be able to work out a solution.

jaraco avatar Apr 23 '19 12:04 jaraco

ES6 is known not to work yet. Any contributions to support ES6 would be appreciated. Can you send a diff or PR for the changes you made? Hopefully someone will be able to work out a solution.

Sorry,i am not familiar with python,my Language is java.I spent 3 days to learn python and tried to read your codes.Some place i don't understand,my solution is modify doc_type to index in file <elastic2_doc_manager.py> ,example: 图片

Of course,not only this place in this file,i believe u know what i means.But,this is just suit my commpany's requirement and i have to modify by myself .I hava no idea should you delete type or modify doc_type to index, sorry i'm pyhton not very well . By the way ,my environment is python3.7.3, ES6.7 and ES7.0(i already tried both of them), pip3. Last thank u and your team for the contributions to mongo-connector.I sincerely hope that u and your team is getting better and better.

zhangxuan494 avatar Apr 24 '19 01:04 zhangxuan494

Hi, there are any news for this argument? Thanks.

leleTino avatar Aug 28 '19 14:08 leleTino