| Steps To Reproduce: |
> db.createCollection("test")
|
{ "ok" : 1 }
|
> db.test.insert({"title": "hallo"})
|
> db.test.insert({"title": "„hallo“"})
|
> db.test.find()
|
{ "_id" : ObjectId("54c8737202907f6af18809a2"), "title" : "hallo" }
|
{ "_id" : ObjectId("54c8737202907f6af18809a3"), "title" : "„hallo“" }
|
> db.test.ensureIndex({"title" : "text"})
|
> db.test.runCommand("text", {"search": "hallo"})
|
{
|
"queryDebugString" : "hallo||||||",
|
"language" : "english",
|
"results" : [
|
{
|
"score" : 1.1,
|
"obj" : {
|
"_id" : ObjectId("54c8737202907f6af18809a2"),
|
"title" : "hallo"
|
}
|
}
|
],
|
"stats" : {
|
"nscanned" : 1,
|
"nscannedObjects" : 0,
|
"n" : 1,
|
"nfound" : 1,
|
"timeMicros" : 97
|
},
|
"ok" : 1
|
}
|
|