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

how to handle DBref data that sync from mongo to es? #17

Closed flyinghawker closed 5 years ago

flyinghawker commented 5 years ago

In some scenarios, there is dbref data that exsits in mongod model, how we can map that properly to es database. This should be very common case anyway.

flyinghawker commented 5 years ago

Actually, the key issue is regarding many to many support in Elasticsearch, my current solution is to do Application-side join in es assuming the number level is not that huge.

https://www.elastic.co/guide/en/elasticsearch/guide/master/application-joins.html