📅  最后修改于: 2022-03-11 15:02:45.243000             🧑  作者: Mango
var schema = new Schema({
name: String,
email: String,
profile: {
something: String,
somethingElse: String
}
});
schema.index({name: 'text', 'profile.something': 'text'});