-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
ALL
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
Currently one can use the meta projections to put fill fields that would normally be invalid. Though they are valid json results, we probably should avoid letting users create documents using mongo, that they cannot then save in mongo.
> db.test.ensureIndex({a:"text"}) > db.test.insert({a: "test text"}) SingleWriteResult({ "writeErrors" : [ ], "writeConcernErrors" : [ ], "nInserted" : 1, "nUpserted" : 0, "nUpdated" : 0, "nModified" : 0, "nRemoved" : 0, "upserted" : [ ] }) > db.test.find({$text: {$search: "text"}}, {$query: {$meta: "textScore"}}) { "_id" : ObjectId("52d4351004b77493319064a3"), "a" : "test text", "$query" : 0.75 }