Open mcleae opened 9 years ago
I'm not particularly excited about this feature. MongoDB recommends against using DBRefs
the feature is already in this plugin, this just changes it to expand and nest the referenced doc. if dbrefs aren't used then this has no effect, if they are then it will at least result in a nested searchable document in elasticsearch, which is in line with mongo's recommendation of nesting the related data
i just noticed this https://github.com/richardwilly98/elasticsearch-river-mongodb/issues/350. if the preference is to have a config for enabling/disabling fetching i can take care of that. i'll aim to leave it disabled by default so as to preserve the current functionality
@benmccann configs for enabling/disabling are in, please let me know if you have any other concerns
expand and nest dbrefs instead of mapping them as just the id and type
The following (where category is a dbref)
Becomes