Closed nuest closed 8 years ago
As it stands right now, the name of every Mongo collection to be synced in ES has to be the name used in ES as type name. This might be configurable in nearest future...
I understand.
The watcher configuration and examples show using two values, which could be interpreted as them being independent. I suggest to mention this limitation in the examples, or to throw an error when the values are different.
Thanks for the quick reply!
I have an issue with
collection name != type name
, and I think it is down to this linehttps://github.com/toystars/node-elasticsearch-sync/blob/master/index.js#L64
Should that not do something like
currentCollectionName = document.collection
?