Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
[{_id:1,"key":"The quick brown"},{_id:2,"key":"Fox jumps over the lazy dog"}]
Query
db.collection.aggregate([{$match:{$expr:{$gt:[{$indexOfCP:["$key","jump"]},-1]}}}])
Result