zhr85210078 / node-mongodb-es-connector

nodejs mongodb elasticsearch synchrodata(mongodb和es同步数据)
https://zhr85210078.github.io/node-mongodb-es-connector/#/
MIT License
77 stars 17 forks source link

Can we allow to map mongo fields to es in different name? #23

Open flyinghawker opened 5 years ago

flyinghawker commented 5 years ago

The reason I pose this question is that I need to also ship _id to es but has conflict with es: Field[_id] is defined twice in [xxxx]

flyinghawker commented 5 years ago

BTW, I just try this lib and it looks awesome, thanks guy!

zhr85210078 commented 5 years ago

https://www.elastic.co/guide/en/elasticsearch/reference/current/copy-to.html

flyinghawker commented 5 years ago

@zhr85210078 Thanks. I will try this out.