|
Hi Faleij,
Thanks for the report. The behavior you describe matches the documentation you reference.
- with search criteria of "\"ssl certificate\" mongodb regex" the $text operator searches for the phrase "ssl certificate" AND ("mongodb" OR "regex" OR "ssl" OR "certificate").
- the text string "ssl certificate authority key" has the phrase "ssl certificate" as well as the terms "ssl" and "certificate".
- consequently, the boolean expression is True AND (False OR False OR True OR True), which simplifies to True, so the document is returned.
I hope this clarifies this behavior. For MongoDB-related support discussion please post on the mongodb-users group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-users group.
Kind regards,
Thomas
|