biasa | operator bekerja di mongo.
Ini harus dilakukan:
BasicDBObject regexQuery = new BasicDBObject();
regexQuery.put("name",
new BasicDBObject("$regex", "ABC\\|DFG"));
Jika mencoba shell mongo:
db.collection.find({name:/ABC|DFG/}).pretty()