$and operator on multiple $text search in mongo $and operator on multiple $text search in mongo mongodb mongodb

$and operator on multiple $text search in mongo


Base on mongoDB docs, AND operator can use directly in search term by combining quote and space. For example, we search for "ssl certificate" AND "authority key", so the query should like:

> db.tp.find({'$text': {'$search': '"ssl certificate" "authority key"'}})