-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
Affects Version/s: 2.5.4
-
Component/s: Text Search
-
None
-
ALL
-
None
-
None
-
None
-
None
-
None
-
None
-
None
If a text query contains a negated term with a non-trivial stemming, the text search matcher will incorrectly match documents that contain the term if it is not completely lowercased.
Reproduce with:
> db.foo.remove() Remove WriteResult({ "ok" : 1, "n" : 1 }) > db.foo.insert({a:"PIZZA RESTAURANT"}) Insert WriteResult({ "ok" : 1, "n" : 1 }) > db.foo.runCommand("text",{search:"pizza -restaurant"}).stats.n 1