Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
OSX
*Location*: https://docs.mongodb.com/manual/about/
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
*Referrer*: https://docs.mongodb.com/manual/reference/operator/query/text/
*Screen Resolution*: 1440 x 900
Description
If the $search string includes a phrase and individual terms, text search will only match the documents that include the phrase. More specifically, the search performs a logical AND of the phrase with the individual terms in the search string.
For example, passed a $search string:
"\"ssl certificate\" authority key"
The $text operator searches for the phrase "ssl certificate" and ("authority" or "key" or "ssl" or "certificate" ).
concerning the "and between "....ssl certificate" and ("authority"...
the last sentence should make it more clear, that its not a logical AND, but a logical OR!!