|
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 }
|
|