This is convoluted. If MongoDb is suggesting that modelling be done so that documents that would in the relational world be different tables, are not modelled as tables but are modelled as sub-documents, then it should be possible to get the _id of a sub-document in a search? Getting ids of matching documents in other tables is very basic, so it should be the case for sub-documents, if this is the recommended way to model other tables in mongo db.
Something to consider.
Also please advise how i should proceed from here.
The matching of leos to deos is very crucial for me. I need the ids clearly for every match.