-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
Affects Version/s: 3.1.2
-
Component/s: Text Search
-
Fully Compatible
-
ALL
-
Platform 5 06/26/16
-
None
-
None
-
None
-
None
-
None
-
None
-
None
This bug only affects recent 3.1.x versions and not 3.0.
Master:
> db.fts.drop();
> db.fts.ensureIndex({a: 'text'});
// The index is created
> db.fts.insert({a: 'hello.world'});
WriteResult({ "nInserted" : 1 })
> db.fts.validate(true).keysPerIndex;
{ "test.fts.$_id_" : 1, "test.fts.$a_text" : 3 }
3.0.3:
> db.fts.drop();
> db.fts.ensureIndex({a: 'text'});
// The index is created
> db.fts.insert({a: 'hello.world'});
WriteResult({ "nInserted" : 1 })
> db.fts.validate(true).keysPerIndex;
{ "test.fts.$_id_" : 1, "test.fts.$a_text" : 2 }