Details
-
Task
-
Resolution: Done
-
Major - P3
-
None
-
None
-
Fully Compatible
-
Platform A (10/09/15), Platform B (10/30/15)
Description
So, if I have a collection foo with the text index:
db.foo.createIndex( { x: "text" }, { default_language: "french" } )
|
and the collection has the following documents
> db.foo.find()
|
{ "_id" : ObjectId("5617cdea6201ba0ae25c192d"), "x" : "répondez" }
|
{ "_id" : ObjectId("5617ce146201ba0ae25c192e"), "x" : "répondez", "language" : "fr" }
|
{ "_id" : ObjectId("5617d32e6201ba0ae25c192f"), "x" : "répondez", "language" : "fr" }
|
{ "_id" : ObjectId("5617d6456201ba0ae25c1930"), "x" : "répondez", "language" : "french" }
|
{ "_id" : ObjectId("5617d65d6201ba0ae25c1931"), "x" : "réponder", "language" : "french" }
|
But the $text search only finds one document:
> db.foo.find( { $text: {$search: "réponder", $language: "fr"} } )
|
{ "_id" : ObjectId("5617cdea6201ba0ae25c192d"), "x" : "répondez" }
|
Whereas in v3.0.5, it would find all of them