mongoose findone exclude own document
Product
.find({
$and: [
{ _id: {$ne: someId} },
{ $or: [
{ 'tags': { $regex: criteria, $options: 'i' }, },
{ 'name': { $regex: criteria, $options: 'i' }, },
]},
]
})
.limit(10)
.exec((err, similar) => {
//...
})