Mango search in Arrays

First, you need to create your index. I suggest that you create an index on the Calibration.Presettings.Date field. You can use the following JSON object to create it: { “index”: { “fields”: [ “_id”, “Calibration.Presettings.Date.[].Type” ] }, “type”: “json” } So the selector would be like this : { “selector”: { “Calibration.Presettings.Date”: { “$elemMatch”: { … Read more