-
Type:
Bug
-
Resolution: Won't Fix
-
Priority:
Major - P3
-
None
-
Affects Version/s: 3.1.0
-
Component/s: Text Search
-
Fully Compatible
-
ALL
-
-
Platform A (10/09/15)
-
None
-
None
-
None
-
None
-
None
-
None
-
None
$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
- is related to
-
SERVER-17437 Case-sensitive mode for text search
-
- Closed
-