molecuel / mongolastic

Mongolastic - Mongoose middleware for elasticsearch integration
MIT License
8 stars 4 forks source link

Create a parent child relation between docs #2

Closed viciousxp closed 10 years ago

viciousxp commented 10 years ago

The documentation is a bit short and it isnt clear to me looking at the code how I would set a parent to a child document. Has this been implemented so far or not ?

DominicBoettger commented 10 years ago

There is a populate option. If a field is a reference you can add the option elastic: {populate: true}