Details
-
Bug
-
Resolution: Unresolved
-
Major - P3
-
None
-
3.2.10, 3.3.15, 3.4.0-rc0
-
Query Integration
-
ALL
Description
The text index version 3 does not provide correct search result when the word contains "Turkish i" char.
|
Create Script |
db.turk.drop()
|
db.turk.insert({ _id: "small_dotless", t1 : "quıt" }) |
db.turk.insert({ _id: "small_dot", t1 : "quit" }) |
db.turk.insert({ _id: "big_dotless", t1 : "QUIT" }) |
db.turk.insert({ _id: "big_dot", t1 : "QUİT" }) |
|
|
db.turk.ensureIndex({t1: "text"}, { |
default_language: "turkish", |
name: "TextIndex" |
});
|
|
Actual Results |
> db.turk.find({$text: {$search: "quit", $language: "tr", $caseSensitive: false, $diacriticSensitive: false}}); |
{"_id" : "big_dot", "t1" : "QUİT"} |
{"_id" : "small_dot", "t1" : "quit"} |
|
Expected Results |
> db.turk.find({$text: {$search: "quit", $language: "tr", $caseSensitive: false, $diacriticSensitive: false}}); |
{"_id" : "small_dotless", "t1" : "quıt"} |
{"_id" : "small_dot", "t1" : "quit"} |
{"_id" : "big_dotless", "t1" : "QUIT"} |
{"_id" : "big_dot", "t1" : "QUİT"} |