MongoDB Text Search AND multiple search words

Give a try to:

db.supplies.runCommand("text", {search:"\"printer\" \"ink\""})

Also, here’s a quote from docs:

If the search string includes phrases, the search performs an AND with
any other terms in the search string; e.g. search for “”twinkle
twinkle” little star” searches for “twinkle twinkle” and (“little” or
“star”).

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)