Details
-
Bug
-
Resolution: Won't Fix
-
Major - P3
-
None
-
3.1.0
-
Fully Compatible
-
ALL
-
-
Platform A (10/09/15)
Description
$text queries with $caseSensitive: true match against stemmed tokens instead of full tokens:
> var t = db.fts_case_sensitive;
|
|
|
> t.insert({_id: 0, a: 'swiftly'});
|
WriteResult({ "nInserted" : 1 })
|
|
|
> t.insert({_id: 1, a: 'swiftlY'}); // capital y in the suffix
|
WriteResult({ "nInserted" : 1 })
|
|
|
> t.find()
|
{ "_id" : 0, "a" : "swiftly" }
|
{ "_id" : 1, "a" : "swiftlY" }
|
|
|
> t.find({$text: {$search: 'swiftly', $caseSensitive: true}});
|
{ "_id" : 0, "a" : "swiftly" }
|
{ "_id" : 1, "a" : "swiftlY" } // this is an unexpected result because of the capital y
|
Attachments
Issue Links
- is related to
-
SERVER-17437 Case-sensitive mode for text search
-
- Closed
-