Details
-
Bug
-
Resolution: Done
-
Major - P3
-
2.5.4
-
None
-
ALL
Description
The text negation matcher parses the document using the search language. It should instead be parsing the document with the document language.
> db.foo.insert({_id:0, a:"gladly 007"}) |
> db.foo.ensureIndex({a:"text"}) |
> db.foo.find({$text:{$search:"glad", $language:"spanish"}}) |
{ "_id" : 0, "a" : "gladly 007" } |
> db.foo.find({$text:{$search:"007 -glad", $language:"spanish"}}) |
{ "_id" : 0, "a" : "gladly 007" } // incorrect, not caught by negation because "gladly" stemmed with Spanish stemmer |
>
|