Details
-
Bug
-
Resolution: Done
-
Major - P3
-
2.5.4
-
None
-
ALL
Description
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
|