|
This limitation does not appear to exist on HEAD of the master branch:
MongoDB Enterprise > db.c.drop()
|
false
|
MongoDB Enterprise > db.c.insert({a: "foo"})
|
WriteResult({ "nInserted" : 1 })
|
MongoDB Enterprise > db.c.createIndex({a: "text"})
|
{
|
"createdCollectionAutomatically" : false,
|
"numIndexesBefore" : 1,
|
"numIndexesAfter" : 2,
|
"ok" : 1
|
}
|
MongoDB Enterprise > db.c.find({$text: {$search: "foo"}})
|
{ "_id" : ObjectId("5faad8454276776545b2214f"), "a" : "foo" }
|
MongoDB Enterprise > db.c.find({$text: {$search: "foo"}}, {"a.b": {$meta: "textScore"}})
|
{ "_id" : ObjectId("5faad8454276776545b2214f"), "a" : { "b" : 1.1 } }
|
I'm not sure exactly when this was changed, so I will just close this ticket as "Gone Away".
|