📜  猫鼬按关键字搜索 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:28.058000             🧑  作者: Mango

代码示例1
var result = db.collection('AdSchema').find({
    $or: [ {vehicleDescription : { $regex: search.keyWord, $options: 'i' }}, { adDescription: { $regex: search.keyWord, $options: 'i' } } ]
});