Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
[{_id:"....",hostname:"mysite.com",text:[{source:"this is text. this is some pattern"},{source:"...."}]}]
Query
db.collection.update({"text.source":{$regex:"text"}},{$pull:{"text":{source:{$regex:"text"}}}})
Result